How would I go about making the array returned by genprime a const array so I don't have to recreate it in every function???
I'm guessing that means he doesn't want to re-compute the sequence of primes each time he needs it, which is a problem that Bazzy's code doesn't solve. Of course, I might be misinterpreting the requirement.