Problem 55275. List the semiprimes
Solution Stats
Solution Comments
-
3 Comments
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
Suggested Problems
-
Swap the first and last columns
17139 Solvers
-
3961 Solvers
-
319 Solvers
-
1488 Solvers
-
Arrange vector in ascending order
726 Solvers
More from this Author190
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!