Problem 2337. Sum of big primes without primes
Solution Stats
Problem Comments
-
2 Comments
Rafael S.T. Vieira
on 8 Aug 2020
Be careful, I've implemented the sieve, but not all versions of it are sufficiently fast to handle the biggest numbers in the test suite.
Yunpeng Teng
on 7 Dec 2020
While evaluating the solution, the server encountered an error caused by long running MATLAB code. Edit the code if needed and then submit.
Solution Comments
-
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).
Problem Recent Solvers157
Suggested Problems
-
Convert a numerical matrix into a cell array of strings
1234 Solvers
-
310 Solvers
-
473 Solvers
-
3376 Solvers
-
Highly divisible triangular number (inspired by Project Euler 12)
84 Solvers
More from this Author43
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!