Problem Statement
Write a function int nextPrime(int n) that returns the smallest prime number strictly greater than n.
DEMO-C-32 โข Programming in C
Write a function int nextPrime(int n) that returns the smallest prime number strictly greater than n.
A single integer.
The next prime number.
Submit runs every public testcase in this browser. Results and code never leave this device.
2
3
8
11
1
2
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question