Divisible by 3
57 → 5 + 7 = 12
Add all digits. If the sum is divisible by 3, the number is composite. Catches 51, 57, 87, 111, and 561 in a heartbeat.
Primearium Lab · First Mini-Game
A glowing number appears. Tap PRIME or NOT before the timer runs out — and learn the trick behind every answer.
Tap PRIME / NOT, or use keys P / N or ← / →
Decided by deterministic Miller–Rabin (first 13 prime bases).
Flawless run — not a single number missed!
Speed Toolkit
57 → 5 + 7 = 12
Add all digits. If the sum is divisible by 3, the number is composite. Catches 51, 57, 87, 111, and 561 in a heartbeat.
187 → 1 − 8 + 7 = 0
Alternate + and − across the digits. If the result is 0, ±11, ±22…, it divides by 11. Every 4-digit palindrome (like 1331) fails instantly!
1001 = 7 × 11 × 13
Because 1000 ≡ −1 (mod 1001), split big numbers into 3-digit chunks and alternate + / −. Example: 1,729 → 729 − 1 = 728, divisible by 7 and 13!
n < 1000 ⇒ test p ≤ 31
Every composite n has a prime factor ≤ √n. Below 100 you only ever need 2, 3, 5, and 7 (which is why 91 = 7 × 13 is the trickiest two-digit composite!).
Every 6–9 digit Giant in this game is decided by Miller–Rabin using the first 13 prime bases {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41}. Sorenson & Webster (2015) proved this exact base set has zero false positives below 3,317,044,064,679,887,385,961,981 (> 3.3 × 10²⁴), making every verdict in the game 100% certain.
Filtering out multiples of 2, 3, and 5 leaves only 8 of every 30 integers (26.7%). Between 2 and 1,000, exactly 265 integers survive this base-30 wheel: 165 are prime and exactly 100 are composite (with smallest prime factor ≥ 7, starting at 49, 77, and 91). Your brain’s fast check for 2, 3, and 5 leaves a dense thicket of 7×, 11×, 13×, and 17× semiprimes.
Even Fermat’s little theorem (a^(n−1) ≡ 1 mod n) can be fooled: 341 = 11 × 31 is the smallest base-2 Fermat pseudoprime, and 561 = 3 × 11 × 17 is the smallest Carmichael number (OEIS A002997), fooling every coprime base a. Alford, Granville, and Pomerance (1994) proved infinitely many Carmichael numbers exist. Miller–Rabin defeats them by checking nontrivial square roots of 1 mod n.
Several badges awarded during play touch famous open problems: it is conjectured — but still unproven — that infinitely many twin primes (OEIS A001359), Sophie Germain primes (OEIS A005384), palindromic primes in base 10 (OEIS A002385), and Mersenne primes (OEIS A000668) exist.
Sorenson & Webster (2015), Strong Pseudoprimes to Twelve Prime Bases, Math. Comp. 86; Alford, Granville & Pomerance (1994), There are infinitely many Carmichael numbers, Annals of Math. 139; OEIS A002997, A001359, A005384, A002385.