Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Repunit-primes/Sidef/repunit-primes.sidef
Normal file
8
Task/Repunit-primes/Sidef/repunit-primes.sidef
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var limit = 1000
|
||||
|
||||
say "Repunit prime digits (up to #{limit}) in:"
|
||||
|
||||
for n in (2..20) {
|
||||
printf("Base %2d: %s\n", n,
|
||||
{|k| is_prime((n**k - 1) / (n-1)) }.grep(1..limit))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue