MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayFind nearest prime number less than input number .

For example: if the input number is 125, then the nearest prime number which is less than this number is 113.

75 correct solutions
110 incorrect solutions

Last solution submitted on Oct 09, 2014

1 Comment

bainhome
on 24 Aug 2014

you still not change the wrong test suite:4.1 is not a prime.

4 Comments