Program to determine whether a given number is a twisted prime numberA number is called a twisted prime number if it is a prime number and reverse of this number is also a prime number. Examples: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79 The algorithm to check whether a given number is a twisted prime number is given below. Algorithm
Java ProgramOutput: Enter the prime number? 43 Not Twisted Prime Python ProgramOutput: Enter the prime number? 13 Twisted Prime C ProgramOutput: Enter the prime number? 11 Twisted Prime C# programOutput: Enter the prime number? 13 Twisted Prime PHP ProgramOutput: Enter the prime number? 17 Twisted Prime Next Topic# |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India