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 Solvers3
Suggested Problems
-
Given two arrays, find the maximum overlap
856 Solvers
-
Lychrel Number Test (Inspired by Project Euler Problem 55)
73 Solvers
-
143 Solvers
-
97 Solvers
-
How many days does the cat take to climb out of the hole?
68 Solvers
More from this Author66
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!