Problem 52614. Easy Sequences 12: 50th Prime

Write a function that outputs the th prime after a given number n. For example, the th prime after is .
NOTE: If n itself is prime start counting from the next prime greater than n.

Solution Stats

18.75% Correct | 81.25% Incorrect
Last Solution submitted on Nov 01, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers14

Suggested Problems

More from this Author116

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!