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
Find nearest prime number less than input number
More from this Author103
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!