-
2 Comments
Jon
on 30 May 2014
This doesn't use primes(x),but still feels a little like cheating.
Rafael S.T. Vieira
on 8 Aug 2020
The whole point of using the sieve is not knowing which numbers are prime. So it is no different than sum(primes).
Suggested Problems
-
Which values occur exactly three times?
5144 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
399 Solvers
-
334 Solvers
-
Back to basics - mean of corner elements of a matrix
428 Solvers
-
Is this is a Tic Tac Toe X Win?
513 Solvers
More from this Author43
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!