Write a program to display twin prime numbers that lie between a given range.(in java)
Answers
Answered by
2
Explanation:
Ask the user to enter two ranges , one starting range and second ending range. Step 2 : Use a loop to find all prime numbers between starting range and ending range. Step 3 : Use the logic for checking number is prime or not for every number between the given range and then display the result.
Similar questions