Added number theoretic functions.