Put prime-related functions into a utils package. Modded 003 to use that instead.