Hmm, the only off-the-cuff way I can think of to do that would be an Eratosthene's Sieve -- unless I hardcoded the primes in a fatty switch statement. I think I could remember/figure all the primes in that range in a few minutes.
Am I missing something, or is that basically what you're looking for?
Comments
Hmm, the only off-the-cuff way I can think of to do that would be an Eratosthene's Sieve -- unless I hardcoded the primes in a fatty switch statement. I think I could remember/figure all the primes in that range in a few minutes.
Am I missing something, or is that basically what you're looking for?