#t60. 孪生素数
孪生素数
Twin Primes
Problem Description
Given two integers (), output all pairs of twin primes in the interval . Twin primes are pairs of primes that differ by , such as and , and , and , and so on.
Input Format
Two integers ().
Output Format
Output all twin-prime pairs in the interval [m, n] in ascending order, each enclosed in parentheses as (a,b) with no space in between.
If there is no twin-prime pair in this interval, output none.
Sample Input 1
0 1
Sample Output 1
none
Sample Input 2
1 10
Sample Output 2
(3,5)(5,7)