Given an input set of prime numbers (p), generate all pairs of consecutive smooth numbers (x) (see Stormer's Theorem).
For example, given p=[2 3] as input, the sorted output of all consecutive smooth numbers would be:
x= [1 2
2 3
3 4
8 9]
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
Select every other element of a vector
36532 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
516 Solvers
-
Chebyshev polynomials of the 1st Kind
81 Solvers
-
62 Solvers
-
Big numbers, least significant digits
107 Solvers
More from this Author63
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!