Babbage problem: Difference between revisions
Content added Content deleted
m (reorder solution) |
(J: include missing definition) |
||
Line 78: | Line 78: | ||
modulo1e6=: 1000000&| |
modulo1e6=: 1000000&| |
||
trythese=: i. 1000000 NB. first million nonnegative integers |
trythese=: i. 1000000 NB. first million nonnegative integers |
||
which=: I. NB. position of true values |
|||
which 269696=modulo1e6 square trythese NB. right to left <- |
which 269696=modulo1e6 square trythese NB. right to left <- |
||
25264 99736 150264 224736 275264 349736 400264 474736 525264 599736 650264 724736 775264 849736 900264 974736</lang> |
25264 99736 150264 224736 275264 349736 400264 474736 525264 599736 650264 724736 775264 849736 900264 974736</lang> |
||
The smallest of these values is 25264. |
The smallest of these values is 25264. |
||
=={{header|Processing}}== |
=={{header|Processing}}== |
||
<lang java>// Lines that begin with two slashes, thus, are comments: they |
<lang java>// Lines that begin with two slashes, thus, are comments: they |