MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayCompute the euler's phi function of a large integer.

For more information about this topic please visit: https://en.wikipedia.org/wiki/Euler%27s_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

20 correct solutions
41 incorrect solutions

Last solution submitted on Jul 23, 2014

3 Comments