PRIME(S) \(\rightarrow\) EMIRP(S)

An 'emirp' (prime spelled backward) is a prime whose digits when reversed, yields another prime. For example, 31 is an emirp of 13 and vice-versa. The definition of an emirp does not include palindromic primes such as 101 as they yield the same number when their digits are reversed.

Consider the unordered pair \((p_1 , p_2)\) where \(p_1\) and \(p_2\) are primes which are emirps to each other. How many such unordered pairs of emirps exist which are less than 1000?

Excel in math and science

Master concepts by solving fun, challenging problems.

It's hard to learn from lectures and videos

Learn more effectively through short, conceptual quizzes.

Our wiki is made for math and science

Master advanced concepts through explanations,
examples, and problems from the community.

Used and loved by over 5 million people

Learn from a vibrant community of students and enthusiasts,
including olympiad champions, researchers, and professionals.