Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Pernicious-numbers/Zkl/pernicious-numbers-1.zkl
Normal file
10
Task/Pernicious-numbers/Zkl/pernicious-numbers-1.zkl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
primes:=T(2,3,5,7,11,13,17,19,23,29,31,37,41);
|
||||
N:=0; foreach n in ([2..]){
|
||||
if(n.num1s : primes.holds(_)){
|
||||
print(n," ");
|
||||
if((N+=1)==25) break;
|
||||
}
|
||||
}
|
||||
foreach n in ([0d888888877..888888888]){
|
||||
if (n.num1s : primes.holds(_)) "%,d; ".fmt(n).print();
|
||||
}
|
||||
5
Task/Pernicious-numbers/Zkl/pernicious-numbers-2.zkl
Normal file
5
Task/Pernicious-numbers/Zkl/pernicious-numbers-2.zkl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
primes:=T(2,3,5,7,11,13,17,19,23,29,31,37,41);
|
||||
p:='wrap(n){ primes.holds(n.num1s) };
|
||||
|
||||
[1..].filter(25,p).toString(*).println();
|
||||
[0d888888877..888888888].filter(p).println();
|
||||
Loading…
Add table
Add a link
Reference in a new issue