prime pairs with difference 6
given a range from 'm' and 'n' and you have to print how many prime pairs with difference 6 present in that ran
decription: for example given a range 4 and 40 and and in that 5 is a prime number.and 6 added to that 5 weg
prime pairs with difference 6.so you have to increment the count.and after the end of process you have to retu
present in that range.
the co primes are:
(5,11).(7,13).(11,17),(13,19),(17,23),(23,29),(31,37)
so the output is 7
Sample Input %
Sample Output
Answers
Answer:
prime pairs with difference 6
given a range from 'm' and 'n' and you have to print how many prime pairs with difference 6 present in that ran
decription: for example given a range 4 and 40 and and in that 5 is a prime number.and 6 added to that 5 weg
prime pairs with difference 6.so you have to increment the count.and after the end of process you have to retu
present in that range.
the co primes are:
(5,11).(7,13).(11,17),(13,19),(17,23),(23,29),(31,37)
so the output is 7
Sample Input %
Sample Output
Explanation:
prime pairs with difference 6
given a range from 'm' and 'n' and you have to print how many prime pairs with difference 6 present in that ran
decription: for example given a range 4 and 40 and and in that 5 is a prime number.and 6 added to that 5 weg
prime pairs with difference 6.so you have to increment the count.and after the end of process you have to retu
present in that range.
the co primes are:
(5,11).(7,13).(11,17),(13,19),(17,23),(23,29),(31,37)
so the output is 7
Sample Input %
Sample Output this is right answer