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
-
23459 Solvers
-
Find the numeric mean of the prime numbers in a matrix.
8060 Solvers
-
6910 Solvers
-
convert matrix to single column
377 Solvers
-
There are 10 types of people in the world
787 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!