Jump to content

Babbage problem: Difference between revisions

Line 158:
<pre>25264</pre>
 
=={{header|Processingzkl}}==
<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
</langpre>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.