How do i comput the euler phi function of a large interger?(adsbygoogle = window.adsbygoogle || []).push({});

i know that if p is prime then phi(p)=p-1 and i've found a formula for computing non primes but i dont know how to implement in something like Matlab.

Does anyone know how?

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Calculating Euler phi function

**Physics Forums | Science Articles, Homework Help, Discussion**