Naturally, for bool isprime(number) there would be a data structure I could query. I define the best algorithm, to be the algorithm that pr
bool isprime(number)
Python 3:
def is_prime(a): return a > 1 and all(a % i for i in range(2, int(a**0.5) + 1))