ryan wrote the prime factorization