Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
range rage solution in Clear category for Restricted Prime by ssk8
def rage(start=False+False, stop=True, step=False+True):
rage_list, counter = [], start
while counter < stop:
rage_list.append(counter)
counter += step
return rage_list
def checkio(number):
multiples = set()
for i in rage(start=True+True, stop=number + True):
if i not in multiples:
multiples.update(rage(start=i*i, stop=number + True, step=i))
return number not in multiples
Aug. 1, 2018
Comments: