#2070 Twin Apparent Primes!!

7 s   128 MB  

Description

link

Sample Input

Sample Output

2 6
0 0
1 7

Source

2011 ACM-ICPC Asia Phuket Regional