Problem 156. Parasitic numbers
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
@bmtran (Bryant Tran)
on 1 Feb 2012
might be best to add a test case to guard against test suite hacking
John D'Errico
on 30 Sep 2016
Far too few test cases. In fact, a serious issue with this problem is that there are too few parasitic numbers that will fit into even 64 bits for most values of n.
John D'Errico
on 30 Sep 2016
I've added some test cases, that will make it a bit more difficult to game this problem.
JD
on 7 Nov 2016
Cases 5 and 7 are identical, and I believe they are both wrong. 5 x 142857 = 714285. Isn't this a parasitic number? What am I missing?
Jess Stuart
on 8 Feb 2017
Can the problem creator disqualify "solutions" that cheat? There should be a point penalty (-200) associated with cheating too.
Solution Comments
Show commentsProblem Recent Solvers278
Suggested Problems
-
3254 Solvers
-
1149 Solvers
-
896 Solvers
-
331 Solvers
-
713 Solvers
More from this Author23
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!