Problem 3001. Sphenic number sequence
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].
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers69
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15657 Solvers
-
Find the largest value in the 3D matrix
1568 Solvers
-
Flag largest magnitude swings as they occur
682 Solvers
-
16031 Solvers
-
Rounding off numbers to n decimals
4995 Solvers
More from this Author139
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!