How about changing the problem such that the centre value is not doubled?
274 Solvers
Project Euler: Problem 10, Sum of Primes
725 Solvers
Make a run-length companion vector
521 Solvers
Output any real number that is neither positive nor negative
320 Solvers
467 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!