Question

Check whether two numbers are twin prime  using recursion.

twin prime is a prime number that is either 2 less or 2 more than another prime number—for example, either member of the twin prime pair (41, 43)

				
					ENTER FIRST NUMBER
41
ENTER SECOND NUMBER
43
41 AND 43 ARE TWIN PRIME NUMBERS 
				
			

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 *