Problem 1763. Primes for Large N: 2^30, System Memory Limit
42.86% Correct | 57.14% Incorrect
Last Solution submitted on May 06, 2023
Bart on 6 Aug 2013
I have had some problems to get trough the test suite, one of them was that my primes where in UINT32 and that failed the 'isprime' assertion.
Maybe you could change the following line
Richard Zapor on 7 Aug 2013
Double implemented in test suite. Intent is to find the primes, not to get snared by errant function limitations.
Rafael S.T. Vieira on 21 Sep 2020
Currently the MATLAB function primes is able to solve this problem. Since systems always evolve, the problem's author will probably have to be constantly updating it. Or at least, once a year.
Solution CommentsShow comments
Problem Recent Solvers19
Sum the 'edge' values of a matrix
More from this Author260
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!