14 lines
275 B
Text
14 lines
275 B
Text
char_to_print = 48 #value for 0 caracter
|
|
char_pos =0
|
|
for x do 255 times
|
|
x_is_prime = 1
|
|
for y do x times
|
|
if (x / y) * y == x then # true if x is divicible by y
|
|
x_is_prime =0
|
|
end
|
|
end
|
|
if x_is_prime == 1 then
|
|
char_pos = char_pos + 1
|
|
char_draw(0, char_pos, char_to_print)
|
|
end
|
|
end
|