What can you do with 2 prime numbers?
Context: I'm teaching a programming class, the students have learned to do objectoriented programming, and I think they know how to program a prime sequence object that has a "nextPrime" method that coughs up the next prime number. (Just simple testing of factors, this is not a number theory class.)
So now I want them to do an exercise that requires having 2 prime number sequences. At first I thought Goldbach, but you can actually do that with just one sequence: you have the number to be tested, a prime, and you test if the difference is a prime.
Is there a number theory question (can be trivial, can be hard) that really requires generating pairs of prime numbers?
thanks,
Victor.
