Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Tau-function/Bc/tau-function.bc
Normal file
9
Task/Tau-function/Bc/tau-function.bc
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
define t(n) {
|
||||
auto a, d, p
|
||||
for (d = 1; n % 2 == 0; n /= 2) d += 1
|
||||
for (p = 3; p * p <= n; p += 2) for (a = d; n % p == 0; n /= p) d += a
|
||||
if (n != 1) d += d
|
||||
return(d)
|
||||
}
|
||||
|
||||
for (i = 1; i <= 100; ++i) t(i)
|
||||
Loading…
Add table
Add a link
Reference in a new issue