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
-
4859 Solvers
-
Find state names that start with the letter N
930 Solvers
-
Given two arrays, find the maximum overlap
812 Solvers
-
Compute a dot product of two vectors x and y
845 Solvers
-
Make a random, non-repeating vector.
5379 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!