Update prime.php

Various changes for readability.

More detail written to previous_primes.txt