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

31 solvers submitted 82 solutions (2.65 solutions/solver).

Problem Comments