Rewrote p10 to calculate primes, rather than rely on text file.