Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 981. Find nearest prime number less than input number

Created by Reza Ahmadzadeh

Find 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.

Tags

Problem Group

Solution Statistics

75 correct solutions 110 incorrect solutions
Last solution submitted on Oct 09, 2014

Problem Comments

Solution Comments