Parasitic numbers - MATLAB Cody - MATLAB Central

Problem 156. Parasitic numbers

Difficulty:Rate

Test whether the first input x is an n-parasitic number: http://en.wikipedia.org/wiki/Parasitic_number. ( n is the second input.)

Examples:

parasitic(128205,4) ---> true

parasitic(179487,4) ---> true

parasitic(179487,3) ---> false

Solution Stats

57.28% Correct | 42.72% Incorrect
Last Solution submitted on Feb 09, 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...
2
4
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

Group

Basics - Cell Arrays Image
Basics - Cell Arrays
  • 10 Problems
  • 1277 Finishers

Problem Recent Solvers299

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