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
-
4876 Solvers
-
Swap the first and last columns
15629 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1207 Solvers
-
157 Solvers
-
Join Strings with Multiple Different Delimiters
106 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!