Difference between revisions of "ZCubes/Consecutive Number Sequences, Smarandache-Wellin Numbers"
(Created page with "==Consecutive Number Sequences, Smarandache-Wellin Numbers== <br/> In ZCubes, you can generate a series of numbers and apply your functions on the series of numbers. The vide...") |
(→Code) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 8: | Line 8: | ||
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/> | ||
| + | ==Code== | ||
| + | 1..30 | ||
| + | .allslices() | ||
| + | .$$(r=>r.str()) | ||
| + | .$$(r=>r.reverse().str()) | ||
| − | < | + | PRIMES(30) |
| + | .allslices() | ||
| + | .$$(r=>r.str()) | ||
| + | |||
| + | PRIMES(100) | ||
| + | .allslices() | ||
| + | .$$(r=>r.str()) | ||
| + | |||
| + | "0."+PRIMES(100).join("+") | ||
| + | |||
| + | ODDS(100) | ||
| + | .allslices() | ||
| + | .$$(r=>r.str()) | ||
| + | |||
| + | ODDS(30) | ||
| + | .allslices() | ||
| + | .$$(r=>r.str()) | ||
| + | |||
| + | EVENS(30) | ||
| + | .slice(2) | ||
| + | .allslices() | ||
| + | .$$(r=>r.str()) | ||
| + | |||
| + | <br/> | ||
| + | *[[Z3 | Z3 home]] | ||
| + | *[[Z^3 Language Documentation]] | ||
| + | *[[ZCubes_Videos | ZCubes Videos and Tutorials]] | ||
| + | *[[Main_Page | About ZCubes ]] | ||
| + | <br/> | ||
<br/> | <br/> | ||
| + | |||
© Copyright 1996-2020, ZCubes, Inc. | © Copyright 1996-2020, ZCubes, Inc. | ||
Latest revision as of 12:47, 14 September 2021
Consecutive Number Sequences, Smarandache-Wellin Numbers
In ZCubes, you can generate a series of numbers and apply your functions on the series of numbers. The video demonstrates how to generate special numbers such as the Smarandache-Wellin Numbers. Using ZCubes you can generate Copeland-Erdős-constant primes, concatenate odd numbers or even numbers, work with Fibonacci numbers and much more.
Video
Code
1..30 .allslices() .$$(r=>r.str()) .$$(r=>r.reverse().str())
PRIMES(30)
.allslices()
.$$(r=>r.str())
PRIMES(100)
.allslices()
.$$(r=>r.str())
"0."+PRIMES(100).join("+")
ODDS(100)
.allslices()
.$$(r=>r.str())
ODDS(30)
.allslices()
.$$(r=>r.str())
EVENS(30)
.slice(2)
.allslices()
.$$(r=>r.str())
© Copyright 1996-2020, ZCubes, Inc.