Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -1,16 +1,17 @@
|
|||
func cntdiv n .
|
||||
i = 1
|
||||
while i <= sqrt n
|
||||
if n mod i = 0
|
||||
func divcnt n .
|
||||
tot = 1
|
||||
p = 2
|
||||
while p <= sqrt n
|
||||
cnt = 1
|
||||
while n mod p = 0
|
||||
cnt += 1
|
||||
if i <> n div i
|
||||
cnt += 1
|
||||
.
|
||||
n /= p
|
||||
.
|
||||
i += 1
|
||||
tot *= cnt
|
||||
p += 1
|
||||
.
|
||||
return cnt
|
||||
.
|
||||
for i to 100
|
||||
write cntdiv i & " "
|
||||
if n > 1 : tot *= 2
|
||||
return tot
|
||||
.
|
||||
for i to 100 : write divcnt i & " "
|
||||
print ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue