Compute the Euler's phi function of a large integer.
For more information about this topic please visit: Euler's totient function.
With these constraints:
- n is a nonnegative integer greater than 0.
- "large integer" means 32bit integer
- vectorized Input
Examples:
- eulerphi(4) = 2
- eulerphi(11) = 10
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers102
Suggested Problems
-
Return the largest number that is adjacent to a zero
5541 Solvers
-
Number of 1s in a binary string
11479 Solvers
-
Chebyshev polynomials of the 1st Kind
81 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
405 Solvers
-
533 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
I'm pretty sure eulerphi(1) is 1. Mind checking that please! I'm just going off the table given through your link there.
It is corrected. Thanks for your help!