Easy Sequences 12: 50th Prime - MATLAB Cody - MATLAB Central

Problem 52614. Easy Sequences 12: 50th Prime

Difficulty:Rate
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

19.59% Correct | 80.41% Incorrect
Last Solution submitted on Jan 15, 2025

Problem Comments

Solution Comments

Show comments

Group

Programování - Cody Image
Programování - Cody
  • 12 Problems
  • 526 Finishers

Problem Recent Solvers15

Community Treasure Hunt

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

Start Hunting!
Go to top of page