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.
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.
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.
Connect Four Win Checker
Kryptos - CIA Cypher Sculpture: Vigenere Encryption
Sum the numbers on the main diagonal
Easy Sequences 19: Length of Prime-sided Rectangle with Maximum Area
Easy Sequences 50: Blocked Gaussian Integers
Easy Sequences 18: Set Bits of Triple Summations
Easy Sequences 31: N-N's Sequence
Easy Sequences 22: Sum of Proper Fractions
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office