MyVIPWebTools logo

Euler's Totient Function Calculator — Count Integers Coprime to n

Our Euler's Totient Function Calculator computes φ(n), the number of integers from 1 to n that share no common factor with n, by finding n's prime factorization and applying the product formula φ(n) = n × ∏(1 − 1/p) over each distinct prime factor p — the same method used throughout number theory and RSA cryptography.

Quick Answer

φ(n) counts the integers from 1 to n coprime to n. Enter n below to see φ(n), computed from n's prime factorization via φ(n) = n × ∏(1 − 1/p).

Enter n, then click Calculate.

How to Use the Euler's Totient Function Calculator — φ(n) Online

  1. 1

    Enter a positive whole number n.

  2. 2

    Click 'Calculate' to see φ(n) along with n's full prime factorization.

  3. 3

    Review the product formula breakdown showing exactly how φ(n) was derived.

Why Use Euler's Totient Function Calculator — φ(n) Online?

Euler's totient function, introduced by Leonhard Euler, counts how many integers from 1 to n are 'coprime' to n (share no common factor). It has a clean product formula once you know n's prime factorization: φ(n) = n × ∏(1 − 1/p), multiplying over each distinct prime factor p. This function is the mathematical heart of RSA cryptography — the security of RSA key generation depends on φ(n) being easy to compute when you know n's prime factors, but essentially impossible to compute (or use to factor n) when you don't.

Frequently Asked Questions

Related Tools

Euler's Totient Function Calculator — φ(n) Online | MyVIPWebTools