Next Prime

Computer Mathematics Medium 2 views
Back to Questions

Problem Description

Given n, print the smallest prime >= n.

Input Format

One integer n.

Output Format

One integer prime.

Sample Test Case

Input:
30
Output:
31

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next