Problem 51570. Count numbers whose reciprocals' decimal expansions terminate
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Dyuman Joshi
on 22 May 2021
Not sure why this fails, can anybody tell why?
Largest number in the test case is smaller than 1e16, this should work
ChrisR
on 22 May 2021
Dyuman, your code misses a few powers of 2, for example, for the later tests.
Dyuman Joshi
on 25 May 2021
Thanks, found the insufficiency of the method
-
1 Comment
ChrisR
on 30 Apr 2021
Nikolaos, I don't think Cody scoring accounts for what you mentioned in the comment. :-)
Problem Recent Solvers12
Suggested Problems
-
3736 Solvers
-
6723 Solvers
-
Project Euler: Problem 7, Nth prime
1127 Solvers
-
442 Solvers
-
Calculate the area of a triangle between three points
2207 Solvers
More from this Author190
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!