write the javascript program display whether a number is prime or not?
Answers
Answered by
0
Answer:
as I know python language so
Explanation:
a=int(input ("enter a")
i=2
while i <a:
s=(a℅i)
i=i+1
if s==0 :
print("not prime")
else:
print("prime")
hope this language will help you ;
Similar questions
Political Science,
2 months ago
Economy,
2 months ago
Math,
5 months ago
Biology,
10 months ago
Biology,
10 months ago