Problem 53009. Easy Sequences 48: Prime Big Omega of Factorial Sequence
Solution Stats
Problem Comments
Solution Comments
-
3 Comments
Hi William,
I can't figure out why we are getting different "end digits" for test #9, n = 80000000 to 150000000. Although we basically have same logic. The only difference is my inner loop is vectorized instead of a 'while' loop.
I hope other players could settle this. Might be a rounding issue.
Hi Ramon,
The problem seems to be overflow of some of the intermediate values in the calculation. I put in a test for this, and it fixed all the values in test #9 except the first.
HI William,
You're right test #9 is exceeding 'flintmax'. I've removed that test and modified test #8 to prevent lookups. Thanks.
Please rate the problem.
Problem Recent Solvers4
Suggested Problems
-
2056 Solvers
-
2271 Solvers
-
1336 Solvers
-
449 Solvers
-
670 Solvers
More from this Author91
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!