Cody

Problem 981. Find nearest prime number less than input number

Created by Reza Ahmadzadeh in Community

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.

Be careful, in that 1 is not a prime number. So there is NO prime less than 2.

Solution Stats

33.13% Correct | 66.87% Incorrect
Last solution submitted on Apr 17, 2019

Problem Comments

Solution Comments

Recent Solvers136

Suggested Problems

More from this Author11