August 23, 2024

P38 - Compare the two methods of calculating Euler's totient function.

Use the solutions of problems P34 and P37to compare the algorithms. Try to calculate phi(10090) as an example.

> p37:phi(10090).
     4032.0
           
 > p34:totient(10090).
     4032
Be first to comment
Leave a reply