List Honaker primes - MATLAB Cody - MATLAB Central

Problem 52288. List Honaker primes

Difficulty:Rate
The number 131 is the 32nd prime number. It is a Honaker prime because the sum of its digits (1+3+1) equals the sum of the digits of the index in the list of primes (3+2).
Write a function to list Honaker primes less than or equal to the input number.

Solution Stats

57.14% Correct | 42.86% Incorrect
Last Solution submitted on Sep 12, 2024

Problem Comments

Solution Comments

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

Problem Recent Solvers13

Suggested Problems

More from this Author290

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