The author intenionally hide some info about the website's matlab code, since both of fomula and code calculate M4 with slightly different way, in Cody, you DO NOT NEED to minus the mean of P, unlike this website's code actually did that. I learned that in hard way, but deeply hope you guys enjoy to optimize this code.
1052 Solvers
3984 Solvers
128 Solvers
Project Euler: Problem 10, Sum of Primes
710 Solvers
Getting the row and column location from a matrix
236 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!