Super inefficient e3 w/ bad primality checking