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
-
2897 Solvers
-
2515 Solvers
-
4249 Solvers
-
Create matrix of replicated elements
363 Solvers
-
Is this triangle right-angled?
4592 Solvers
More from this Author191
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!