Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Smith-numbers/PARI-GP/smith-numbers-1.parigp
Normal file
2
Task/Smith-numbers/PARI-GP/smith-numbers-1.parigp
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
isSmith(n)=my(f=factor(n)); if(#f~==1 && f[1,2]==1, return(0)); sum(i=1, #f~, sumdigits(f[i, 1])*f[i, 2]) == sumdigits(n);
|
||||
select(isSmith, [1..9999])
|
||||
1
Task/Smith-numbers/PARI-GP/smith-numbers-2.parigp
Normal file
1
Task/Smith-numbers/PARI-GP/smith-numbers-2.parigp
Normal file
|
|
@ -0,0 +1 @@
|
|||
forcomposite(n=4,9999, f=factor(n); if(#f~==1 && f[1,2]==1, next); if(sum(i=1, #f~, sumdigits(f[i, 1])*f[i, 2]) == sumdigits(n), print1(n" ")))
|
||||
1
Task/Smith-numbers/PARI-GP/smith-numbers-3.parigp
Normal file
1
Task/Smith-numbers/PARI-GP/smith-numbers-3.parigp
Normal file
|
|
@ -0,0 +1 @@
|
|||
forfactored(n=4,9999, f=n[2]; if(#f~==1 && f[1,2]==1, next); if(sum(i=1, #f~, sumdigits(f[i, 1])*f[i, 2]) == sumdigits(n[1]), print1(n[1]" ")))
|
||||
Loading…
Add table
Add a link
Reference in a new issue