Move prime? function to util.js.
Improve the performance of proper-divisors function.