Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -0,0 +1,12 @@
|
|||
var threshold = 10_000_000
|
||||
|
||||
say "Gap Index of gap Starting Niven"
|
||||
for (var (n=1, index=0, gap=0, prev=1); index <= threshold; ++n) {
|
||||
n.is_div(n.digits_sum) || next
|
||||
if ((var diff = (n - prev)) > gap) {
|
||||
gap = diff
|
||||
printf("%3d %15s %15s\n", gap, index, prev)
|
||||
}
|
||||
prev = n
|
||||
++index
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue