Cody

Problem 156. Parasitic numbers

Created by the cyclist in Community

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

56.93% Correct | 43.07% Incorrect
Last solution submitted on Feb 08, 2019

Problem Comments

Solution Comments

Recent Solvers196

Suggested Problems

More from this Author23

Tags

Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!