i liked this !!!!! i was searching for this video!!!!!!!!!! every video in for loop was for numbers except this!!!!!! helped me get 100 marks instead of 50!!!!!!!! , subscribed!!!
var=0 for var in range (1,26): # input 25 times - regress testing n=int(input('Enter an Integer: ')) flag=True if (n==2): print('Prime number') elif n!=2: for i in range (2,n): if(n%i==0): flag = False print('Not prime number') break else: print ('Prime number')
i liked this !!!!! i was searching for this video!!!!!!!!!! every video in for loop was for numbers except this!!!!!! helped me get 100 marks instead of 50!!!!!!!! , subscribed!!!
Excellent man!
very helpful, thanks sir
amazing
var=0
for var in range (1,26): # input 25 times - regress testing
n=int(input('Enter an Integer: '))
flag=True
if (n==2):
print('Prime number')
elif n!=2:
for i in range (2,n):
if(n%i==0):
flag = False
print('Not prime number')
break
else:
print ('Prime number')
Thanks helped a lot:)
is there a way this can be made into a endless loop
You can use while True:
How can I only make it do even number or odd?
Start on the right type of number and make the step size two
thank you!!