Prime Gap Around N

Computer Mathematics Hard 3 views
Back to Questions

Problem Description

Given n, find nearest primes below and above (p

Input Format

One integer n.

Output Format

p q gap.

Sample Test Case

Input:
20
Output:
19 23 4

Constraints

3

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev