Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Prime Factors
from math import floor primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101] for x in range(2, 10000): graph = str((3 - len(str(x)))*" " + str(x)) root = x**0.5 for n in range(2,floor(root)+1): if n in primes: if x%n == 0: graph = graph + "██" else: graph = graph + " " print(graph)
run
|
edit
|
history
|
help
0
L4-HW final
P
fibonaccii.py
PyClassLinSearch
https://rextester.com/HYVN80193
Random number
print
wordchangething
word repeat
reverse the number