Prime Time and Prime Swipe ask one question again and again: is this number prime? A prime has exactly two divisors, 1 and itself. Everything else above 1 is composite. The trick is answering in a second or two, and every explanation in the app teaches one of these tests.
The quick tests
- Even? Every even number above 2 is composite, because 2 divides it. 48 = 2⁴ × 3.
- Ends in 5? Then 5 divides it. 35 = 5 × 7. (Ends in 0 is even, so the first test already caught it.)
- Digits add up to a multiple of 3? Then 3 divides it. 57 looks prime, but 5 + 7 = 12, so 57 = 3 × 19.
Those three tests catch most composites. The rest are what the app calls sneaky.
The sneaky ones
A sneaky composite is odd, doesn't end in 5, and its digits don't add up to a multiple of 3, so no quick trick gives it away. The usual suspects are multiples of 7, 11 and 13:
- 49 = 7 × 7, 77 = 7 × 11, 91 = 7 × 13
- 119 = 7 × 17, 121 = 11 × 11, 143 = 11 × 13
- 169 = 13 × 13, 187 = 11 × 17, 221 = 13 × 17
91 is the most famous: it fools nearly everyone the first time. In Prime Time, from level 2 three out of four composites are sneaky, so these are worth learning by heart.
You only need to check up to the square root
If a number has a divisor bigger than its square root, it also has one smaller than it, because the two multiply back to the number. So to prove 61 is prime you only need the primes up to √61 ≈ 7.8: that's 2, 3, 5 and 7, and none of them divide 61.
That keeps even 3-digit numbers manageable. For anything under 1,000, the primes up to 31 are enough, and the quick tests already handle 2, 3 and 5.
How the games use them
Prime Time has three kinds of question: "Prime or not?", "What's the next prime after p?" and "Which one is prime?". Every 5 right answers raise the level, and the numbers grow from 100 up to 500. You have three hearts, and five right in a row doubles your points.
Prime Swipe is the fast version: swipe right for prime, left for composite, before the clock runs out. It starts with numbers below 100 and reaches 3-digit numbers, up to 500, at level 4, where the clock gives you a little more time. Five in a row makes a Super-Atom for double points; ten makes it ×3 and twenty ×4.
Miss one in either game and the explanation shows which test would have caught it. That is the point: a wrong answer still teaches something.