Write a C program or Java program to check whether the given input is Prime number or not | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a C program or Java program to check whether the given input is Prime number or not

Get integer input from the user, check whether the integer belongs to Prime number or not, If it is a prime number , print "Prime Number" . If it is not a prime number, then print "Not A Prime Number"

4th May 2019, 1:46 PM
Hina Kauser
1 Answer