Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB 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

91 correct solutions 145 incorrect solutions
Last solution submitted on May 06, 2016

Problem Comments

Solution Comments