Number-theoretic functions for Julia