Update primes module

Added a few comments and a new prime factors functions