Nice test cases!
With a more robust Test Suite many/most of the submissions would fail for ignoring the Problem Statement instruction that primes must be less than n. Please add test cases in which the input x (or "n") is itself a prime.
Return unique values without sorting
589 Solvers
521 Solvers
384 Solvers
Matlab Basics II - Extract last 3 elements of a vector
164 Solvers
Sum the squares of numbers from 1 to n
163 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!