Problem 47808. Check if the input is an interprime

More information about interprimes on Wikipedia
isInterprime(2) = 0;
isInterprime(4) = 1;

Solution Stats

60.0% Correct | 40.0% Incorrect
Last Solution submitted on Jan 16, 2026

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers23

Suggested Problems

More from this Author92

Community Treasure Hunt

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

Start Hunting!