Question

Print Twin Prime numbers in given range  using recursion

 

(Twin Primes are the prime numbers with a difference of 2.)

Example: (3 and 5),(5 and 7),(11 and 13) etc

				
					Enter the lower value:-10
Enter the upper value:90
Twin Prime numbers between -10 and 90 :
( 3 , 5 )
( 5 , 7 )
( 11 , 13 )
( 17 , 19 )
( 29 , 31 )
( 41 , 43 )
( 59 , 61 )
( 71 , 73 )
				
			

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

Leave a Reply

Your email address will not be published. Required fields are marked *