Problem 52724. Easy Sequences 20: Counting Prime-sided Rectangles
75.0% Correct | 25.0% Incorrect
Last Solution submitted on Mar 17, 2023
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
Sum all integers from 1 to 2^n
find nth even fibonacci number
Count unique orderings of vertices of a polygon
Easy Sequences 24: Number of Coprime Lattice Points
More from this Author101
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!