Babbage problem: Difference between revisions

Content added Content deleted
Line 158: Line 158:
<pre>25264</pre>
<pre>25264</pre>


=={{header|Processing}}==
=={{header|zkl}}==
<lang zkl>// The magic number is 269696, so, starting about its square root,
<lang zkl>
// find the first integer that, when squared, its last six digits are the magic number.
</lang>
const N=269696; [500..].filter1(fcn(n){ n*n%0d1_000_000 == N })</lang>
{{out}}
<pre>
25264
</pre>