Prime Gap Around N
Computer Mathematics
Hard
2 views
Problem Description
Given n, find nearest primes below and above (p
Input Format
One integer n.
Official Solution
Sieve to 2*n or search outward by primality test until find p and q.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!