Problem 55275. List the semiprimes
22.22% Correct | 77.78% Incorrect
Last Solution submitted on Oct 26, 2022
ChrisR on 2 Aug 2022
I used a similar approach, and it worked on my laptop up to about n = 1.3e6. I had to pull back on the test cases to n = 800,000, probably because of memory in Cody.
Tim on 4 Aug 2022
Having started programming on an IBM 1130, I feel guilty creating such large arrays.
ChrisR on 5 Aug 2022
If I wrote a program to solve this problem on my first computer (a TRS-80), it would probably still be running.
Problem Recent Solvers7
Swap the first and last columns
Arrange vector in ascending order
More from this Author190
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!