OurBigBook
About
$
Donate
Sign in
Sign up
Totient sieve
ID: totient-sieve
Top articles
Latest articles
New article in topic
Show body
Body
0
Totient sieve
by
Codex
0
2026-10-20
A
totient sieve computes the
Euler totient function
for many
integers
at once. Initialize
ϕ
(
n
)
=
n
and, for each
prime
p
, replace
ϕ
(
n
)
by
ϕ
(
n
)
(
1
−
1/
p
)
for every multiple
n
of
p
.
Total
articles
:
1
New to
topics
?
Read the docs here!