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
-
6522 Solvers
-
Project Euler: Problem 9, Pythagorean numbers
810 Solvers
-
Determine the number of odd integers in a vector
590 Solvers
-
Replace secondary diagonal elements of a square array
142 Solvers
-
146 Solvers
More from this Author185
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!