Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Smith-numbers/Zkl/smith-numbers-1.zkl
Normal file
6
Task/Smith-numbers/Zkl/smith-numbers-1.zkl
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
fcn smithNumbers(N=0d10_000){ // -->(Smith numbers to N)
|
||||
[2..N].filter(fcn(n){
|
||||
(pfs:=primeFactors(n)).len()>1 and
|
||||
n.split().sum(0)==primeFactors(n).apply("split").flatten().sum(0)
|
||||
})
|
||||
}
|
||||
2
Task/Smith-numbers/Zkl/smith-numbers-2.zkl
Normal file
2
Task/Smith-numbers/Zkl/smith-numbers-2.zkl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
sns:=smithNumbers();
|
||||
sns.toString(*).println(" ",sns.len()," numbers");
|
||||
Loading…
Add table
Add a link
Reference in a new issue