In random prime finder, use mod instead of divide.