

Link: http://codepad.org/Of6OidC1 raw code | output | fork ]



Python , pasted on Jul 31:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 def prime ( x ): if x == 1 : return 0 else : limit = x / 2 div = 2 check = 0 while div <= limit : if x % div == 0 : check = 1 div = div + 1 if check == 0 : return 1 else : return 0 num = 1 count = 0 while count < 999 : if prime ( num ) == 1 : count = count + 1 num = num + 2 num = num - 2 print ( num )



Output: 1 7919