Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
brute force verification solution in Clear category for Restricted Prime by juestr
def checkio(n):
def two_up_to(predicate):
x = True + True
while predicate(x):
yield x
x += True
return n > True and all(a * b != n
for a in two_up_to(lambda x: x * x <= n)
for b in two_up_to(lambda x: x * a <= n))
Oct. 19, 2021