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
var_local_global.py
Python
Fu 1
Breadth-First Path Finding
Assignment-2a
crown pattern
HW. InsertionSort in Descending order
highest score question NPTEL
isPalindrome.py
kill