as here we have to compare 1st two bits only, we are taking 1st two bits by a(1:2), means values of a starting from 1st position to 2nd position.
Project Euler: Problem 10, Sum of Primes
707 Solvers
Convert a numerical matrix into a cell array of strings
455 Solvers
2334 Solvers
289 Solvers
2773 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!