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
-
2271 Solvers
-
1262 Solvers
-
1166 Solvers
-
2730 Solvers
-
Find a subset that divides the vector into equal halves
371 Solvers
More from this Author90
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!