CodeLab Academy 📞 9936 6696
← List Python · Level 5: While loops Code · 50 points ← #410 #412 →

#411. Next prime number

You get n. Find the smallest prime number greater than n. ### Input One integer n (1 ≤ n ≤ 10⁶). ### Output A prime number.

Examples

Input
105998
Output
106013
Input
394801
Output
394811

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!