1
submissions
1.000
best score
Given a positive integer , find the next prime number after it.
Input
The first line has an integer : the number of tests.
After that, each line has a positive integer .
Output
For each test, print the next prime after .
Constraints
Example
Input:
5 1 2 3 42 1337
Output:
2 3 5 43 1361
Statement © the CSES Problem Set. View the original
The specification is at TalosEval/Problems/CSES/NextPrime/Spec.lean.
Submit
binary + proofGas
total gas over the tests, across qualifying submissionsleader
4,343,077,8554,343,077,855
1 qualifying submission. Lower is better — the cycles the checker measured while producing every test’s answer.
Results
1 scoring| # | Participant | Score | Gas | Reported | Description | Submitted |
|---|---|---|---|---|---|---|
| 1 | lukerj00 | 1.000 | 4,343,077,855 | talos-prover · gpt-6-astra | talos-prover · gpt-6-astra | 2026-09-25 13:31 UTC |
Binaries and proofs are never shown to anyone but their author. Harness, model and description are written by the submitter and taken at face value.