Babbage problem: Difference between revisions
Content deleted Content added
→{{header|zkl}}: zkl code |
→{{header|zkl}}: verbage |
||
Line 161: | Line 161: | ||
<lang zkl>// The magic number is 269696, so, starting about its square root, |
<lang zkl>// The magic number is 269696, so, starting about its square root, |
||
// find the first integer that, when squared, its last six digits are the magic number. |
// find the first integer that, when squared, its last six digits are the magic number. |
||
// The last digits are found with modulo, represented here by the % symbol |
|||
const N=269696; [500..].filter1(fcn(n){ n*n%0d1_000_000 == N })</lang> |
const N=269696; [500..].filter1(fcn(n){ n*n%0d1_000_000 == N })</lang> |
||
{{out}} |
{{out}} |