Factor a number into Fermi-Dirac primes - MATLAB Cody - MATLAB Central

Problem 58019. Factor a number into Fermi-Dirac primes

Difficulty:Rate
Cody Problem 58018 asked you to list the Fermi-Dirac primes, which are prime powers with exponents that are powers of 2. As noted there, the name comes from an analogy with particle physics because every number can be written as the product of a unique subset of the Fermi-Dirac primes, in which the Fermi-Dirac primes appear at most once. For example, 2250 = 2x5x9x25.
Write a function analogous to factor(n) that factors the number n into Fermi-Dirac primes. List the Fermi-Dirac primes in ascending order. Take the factorization of 1 to be 1.

Solution Stats

86.67% Correct | 13.33% Incorrect
Last Solution submitted on Mar 02, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers8

Suggested Problems

More from this Author291

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page