English, asked by wapanglocation, 5 months ago

write the javascript program display whether a number is prime or not?​

Answers

Answered by sanskritigupta2020
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