Cody

# Problem 44343. Pair Primes

Let's define pair primes as follow;

• For 2 digits numbers: 11 and 17 are pair primes because both of them are 2 digits prime numbers and last digit of the first prime equals to the first digit of second prime number. 11 and 11 are not pair primes because a = b.
• For 3 digit numbers: 389 and 967 are pair primes because both of them are 3 digits prime numbers and last digit of the first prime equals to the first digit of the second prime number (797 and 797 are not pair primes because a = b). 467 and 673 are pair primes too because the last two digits of the first prime number (67) equals to the first two digit (67) of the second prime number. 211 and 113 are pair primes too but they satisfy two conditions: last digit of the first prime equals to the first digit of the second prime also last two digits of the first prime equals to the first two digits of the first prime.
• For 4 digit numbers:

1-) 1637 and 7549 are pair primes. First ends with 7 and second starts with 7.

2-) 6221 and 2113 are pair primes. First ends with 21 and second starts with 21.

3-) 1429 and 4297 are pair primes. First ends with 429 and second starts with 429. You should be careful. 2111 and 1117 are also four digit pair primes. It satisfies three conditions. First ends with 1 and second starts with 1. First ends with 11 and second starts with 11. First ends with 111 and second starts with 111. [2111 1117] pair should be counted for once.

Given the digit counts, can you determine how many unique pair primes are there (a~=b)

### Solution Stats

52.72% Correct | 47.28% Incorrect
Last Solution submitted on Feb 10, 2020