List prime anagrams of a number - MATLAB Cody - MATLAB Central

Problem 51466. List prime anagrams of a number

Difficulty:Rate
The number 172 is not prime, but its anagrams 127 and 271 are. Write a function that lists the unique prime anagrams of a number in increasing order. Leading zeros are allowed; for example, a prime anagram of 902 is 29.

Solution Stats

62.86% Correct | 37.14% 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 Solvers19

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