Problem 52724. Easy Sequences 20: Counting Prime-sided Rectangles
Solution Stats
Problem Comments
-
1 Comment
David Hill
on 17 Sep 2021
I am getting 2 less on test 7. Not sure what the problem is.
Solution Comments
-
1 Comment
GeeTwo
on 10 Nov 2022
At last! A truly MATLAB-like solution that doesn't time out! Essentially the same as one of my earlier solutions, but forcing that big array of ones and zeros to be int8 rather than double. Logical was just a touch slower than int8.
Problem Recent Solvers6
Suggested Problems
-
2180 Solvers
-
6640 Solvers
-
330 Solvers
-
Find nearest prime number less than input number
461 Solvers
-
3386 Solvers
More from this Author103
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!