Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simplest solution in Clear category for Restricted Prime by cs1g
ONE = True
TWO = ONE + ONE
def mod(x, y):
return pow(x, ONE, y)
def checkio(number):
i = TWO
while i ** TWO <= number:
if not mod(number, i):
return False
i += ONE
return True
June 29, 2017