Calculate Euler's phi function - MATLAB Cody - MATLAB Central

Problem 656. Calculate Euler's phi function

Difficulty:Rate

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:

  1. eulerphi(4) = 2
  2. eulerphi(11) = 10

Solution Stats

28.93% Correct | 71.07% Incorrect
Last Solution submitted on Feb 19, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers91

Suggested Problems

More from this Author1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!