one-file-projects/back2black.py

21 lines
322 B
Python
Raw Normal View History

2015-04-22 18:33:54 +02:00
from sys import stdout as out
p = {}
for i in range(1,91):
p[i] = 0
for i in range(2,91):
n = i
while n <= 90:
p[n]+=1
n += i
for i in range(9):
for j in range(10):
if p[i*10+j+1] % 2 == 0:
out.write("o")
else:
out.write(" ")
out.write("\n")