Letter Primes by contina

p=[]
print(1)
for i in range(2,100):
 y=[x for x in p if i%x<1]
 if y:print(chr(65+p.index(y[0])))
 else:print(chr(65+len(p)));p+=[i]

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page