List composite numbers that do not contain their prime factors as substrings - MATLAB Cody - MATLAB Central

Problem 60758. List composite numbers that do not contain their prime factors as substrings

Difficulty:Rate
The number 63 has the prime factorization 3, 3, and 7, and it contains one of them (3) as a substring. In contrast, the number 48 has unique prime factors of 2 and 3, and neither appears as a substring in 48.
Write a function that takes a number n and produces the nth term in this sequence. For example, 48 is the 16th term.

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Nov 08, 2024

Solution Comments

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

Problem Recent Solvers5

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