Cody

Problem 2335. Find the number that has most primes those less than it

Solution 916715

Submitted on 29 Jun 2016 by Riazul Arefin
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = [5 4 7 3 1]; y_correct = 7; assert(isequal(mostPrimes(x),y_correct));

2   Pass
x = [5 3 1]; y_correct = 5; assert(isequal(mostPrimes(x),y_correct));

Suggested Problems

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!