Please login

Prime

Prepinsta Prime

Video courses for company/skill based Preparation

(Check all courses)
Get Prime Video
Prime

Prepinsta Prime

Purchase mock tests for company/skill building

(Check all mocks)
Get Prime mock

Problem 12

One comment on “Problem 12”


  • Mohd Saif

    #python

    n=int(input(“Enter the no:\n”))
    if(n>1):
    for i in range(2,n):
    if(n%i==0):
    print(f”{n} is not a prime number”)
    break
    else:
    print(f”{n} is a prime number”)
    else:
    print(f”{n} is not a prime number”)