Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
8
Task/Super-d-numbers/Sidef/super-d-numbers.sidef
Normal file
8
Task/Super-d-numbers/Sidef/super-d-numbers.sidef
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
func super_d(d) {
|
||||
var D = Str(d)*d
|
||||
1..Inf -> lazy.grep {|n| Str(d * n**d).contains(D) }
|
||||
}
|
||||
|
||||
for d in (2..8) {
|
||||
say ("#{d}: ", super_d(d).first(10))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue