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.
1773 Solvers
263 Solvers
What is Sum Of all elements of Matrix
299 Solvers
210 Solvers
Matlab Basics II - Create a vector with a repeated entry
187 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!