Goldbach's comet: Difference between revisions

→‎{{header|Python}}: added the missing show()
m (→‎{{header|J}}: further clarification)
(→‎{{header|Python}}: added the missing show())
Line 421:
 
=={{header|Python}}==
<lang python>from matplotlib.pyplot import scatter, show
from sympy import isprime
 
Line 445:
colors = [["red", "blue", "green"][(i // 2) % 3] for i in x]
scatter([i // 2 for i in x], y, marker='.', color = colors)
show()</lang>{{out}}
<pre>
The first 100 G numbers are:
7,813

edits