Adds p7, p8 answers. Revises some earlier prime answers using is_prime.