Wrote prime factorer