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

74 correct solutions 106 incorrect solutions
Last solution submitted on Aug 24, 2014

Problem Comments

Solution Comments