Determine whether a number is a prime self number - MATLAB Cody - MATLAB Central

Problem 49778. Determine whether a number is a prime self number

Difficulty:Rate
Integers can be classified as generated numbers or self numbers. A generated number is one that can be expressed as the sum of another number and its digit sum. For example, 15 can be written as 12+(1+2); in other words, 15’s generator is 12. A self number cannot be expressed in this way.
Write a function to determine whether a number is a prime self number.

Solution Stats

51.52% Correct | 48.48% Incorrect
Last Solution submitted on Sep 11, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
18
8

Problem Recent Solvers15

Suggested Problems

More from this Author291

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page