Computer Science, asked by dimanshu44, 2 months ago

create the following program in python. check whether 89 is a prime number​

Answers

Answered by allysia
0

Answer:

Consider the code if latex not visible:

\\\tt n=89 \\\tt for\ i\ in\ range(2,89): \\\tt {\qquad    if\ n\%i==0:} \\\tt{\qquad {\qquad  print("Not prime") }} \\\tt {\qquad    break} \\\tt else: \\\tt{\qquad print("Prime")}

Attachments:
Similar questions