Sphenic number sequence - MATLAB Cody - MATLAB Central

Problem 3001. Sphenic number sequence

Difficulty:Rate
Sphenic numbers are positive integers that are products of three distinct prime numbers: 30, 42, 66, 70, 78, 102, 105, 110, 114, 130, ... For example, 30 = 2*3*5, 42 = 2*3*7, etc.
Return the numbers from the sphenic sequence corresponding to the supplied indices. For example, if n = 3:7, your function should return [66, 70, 78, 102, 105].
This problem is related to Problem 3002 and Problem 3003.

Solution Stats

48.5% Correct | 51.5% Incorrect
Last Solution submitted on May 05, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
1
4
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers69

Suggested Problems

More from this Author139

Community Treasure Hunt

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

Start Hunting!
Go to top of page