Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Babbage-problem/Zkl/babbage-problem.zkl
Normal file
4
Task/Babbage-problem/Zkl/babbage-problem.zkl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// 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.
|
||||
// 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 })
|
||||
Loading…
Add table
Add a link
Reference in a new issue