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
-
8121 Solvers
-
Sum all integers from 1 to 2^n
12455 Solvers
-
find nth even fibonacci number
51 Solvers
-
Count unique orderings of vertices of a polygon
16 Solvers
-
Easy Sequences 24: Number of Coprime Lattice Points
6 Solvers
More from this Author101
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!