Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime numbers
# print primary numbers max_val = eval(input('Display primary numbers until? ')) print() for n in range(2, max_val + 1): if n == 2 or n == 3: print(n, end=" ") if n%2 == 0 or n%3 == 0: continue i = 5 while i * i <= n: if n%i == 0 or n%(i+2) == 0: break print(n, end = " ") i += 6 print()
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
find x with f(x) = 0 (limited area of solution)
test1
Multi-Layer Neural Networks
sai hw
PySRP
Print lists separated by comma
JSON page
Assignment-2b
ggh
hahahah
Please log in to post a comment.