Check whether two numbers form a twin prime pair (both prime, difference of 2).
Twin primes are pairs of prime numbers that differ by exactly 2, such as (3, 5), (11, 13), and (17, 19). The Twin Prime Conjecture — that there are infinitely many such pairs — remains unproven. This calculator checks that both inputs are prime and that their absolute difference is 2.
Twin prime condition
(p, p+2) are twin primes ⟺ p is prime AND p+2 is prime
(3, 5), (5, 7), (11, 13), (17, 19), (29, 31), (41, 43), (59, 61), (71, 73).
This is the famous Twin Prime Conjecture. It has not been proven or disproven. In 2013, Yitang Zhang proved there are infinitely many pairs of primes with gap ≤ 70 million, later reduced to 246.