This Challenge is to find P-smooth number partial sets given P and a max series value.
A P-smooth number set of N contains a subset of 1:N integers whose prime factors are all <=P.
For P=3 and N=16: P-smooth subset is [1 2 3 4 6 8 9 12 16]. Values 5,7,10,13,14,and 15 are primes >3 or values divisible by primes>3.
vs = find_psmooth(P,N)
Sample OEIS 11-smooth numbers
Where are P-smooth numbers utilized or present themselves? Upcoming Challenge solved by P-smooth numbers.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers99
Suggested Problems
-
Calculate the area of a triangle between three points
3542 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
461 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14235 Solvers
-
Multiples of a Number in a Given Range
946 Solvers
-
Create an index-powered vector
963 Solvers
More from this Author306
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!