Fix 1 and 2 prime checks.