123 sats \ 1 reply \ @SimpleStacker 26 Sep \ parent \ on: [Daily puzzle] Prime number puzzle science
Ah, you're right about larger than 100. I can't find one larger than 68. Revised script:
I tried up to n=10,000 and nothing higher than 68 was found.
def get_primes(n): out = list() sieve = [True] * (n+1) for p in range(2, n+1): if (sieve[p]): out.append(p) for i in range(p, n+1, p): sieve[i] = False return out
Fancy pancy there with your Sieve of Eratosthenes ;)
reply