Solved Problem 10.

Totally trivial given gen-primes.