hahahahahahahah :D
I don't think it's possible to have a finite number of primes though? But it's a programming interview, so really, who gives a shit?!
I don't think it's possible to have a finite number of primes though? But it's a programming interview, so really, who gives a shit?!
In your example it would be (2 * 3) + 1 = 7, prime.
This is Euclid's proof [1] and it's some 2300 years old.