Find the next prime number or numbers for given n. For example:

n = 1;
out = 2;

or

n = [5 7];
out = [7 11];

Good luck!

Solution Stats

2199 Solutions

840 Solvers

Last Solution submitted on May 05, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...