num=int(input("Enter an integer : "))
if num>1 :
for i in range(2,num):
if(num%i)==0:
print(num," is a prime number")
break
else:
print(num," is a prime number")
else:
print(num," is a prime number")
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...
No comments:
Post a Comment