A positive integer .... H .... has no factor bigger than 1 ...and... less than H .... in other words....only factor H has are.... 1 ...and... H ..... so... H is a prime number.....
Now..... program divides H by 18.... so.... remainder [ R ] can possibly be... 1, 2, 3, 4.......17 ......
So...we gotta try to make a prime dats like dis..... [ positive multiple of 18 ] + [ R ] = [ prime ] ......
Now.....18 is even.... so [ any positive multiple of 18 ] + [ any even ] = [ even ] .....
So....any number H... with remainder.... [ R ] = 2, 4, 6, 8, 10, 12, 14, 16 ...will always have factor 2...other than 1 and H .....
So.... possible remainder = 1, 3, 5, 7, 9, 11, 13, 15, 17 .....
But.... factors of 18 [ other than 1 ] = 2, 3, 6, 9, 18 ......
So...any number H ... with a remainder [ R ] that has same factors as factors of 18 [ other than 1 ].... cannot be prime.....
So... remainder with factors of 18 = 3, 9, 15 ..... they all got factor 3 ... which is a factor of 18....
So....3, 9 and 15 cant be remainder [ R ] .....
So.....only possible remainder...... 1, 5, 7, 11, 13, 17 .......so 6 remainder......
! nah id win!