Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
on_off_3
#python 2.7.12 l=1 u=100 print("Prime numbers between",l,"and",u) for num in range(l,u + 1): # prime numbers are greater than 1 if num > 1: for i in range(2,num): if (num % i) == 0: break else: print(num) for i in range(num): if (i%3) == 0: print ("On") elif (i%5) == 0: print ("Off") elif (i%5) == 0 & (i%3==0): print ("OnOff") else: print (i)
run
|
edit
|
history
|
help
0
codeacademy python tasks
pi1
Difference of Sum
Python
Dictionary - convert to lowercase
Cofe
PyRangeArg
binary_4
espacio_blanco
Reed Solomon error correction