Difference between revisions of "ZCubes/Prime Gaps"
Jump to navigation
Jump to search
(→Video) |
(→Code) |
||
(One intermediate revision by one other user not shown) | |||
Line 11: | Line 11: | ||
ps=PRIMES(100000) | ps=PRIMES(100000) | ||
.map((x,i,d)=>d[i]-d[i-1]) | .map((x,i,d)=>d[i]-d[i-1]) | ||
− | .slice() | + | .slice(1) |
~ | ~ | ||
− | |||
<br/> | <br/> | ||
− | © Copyright 1996- | + | *[[Z3 | Z3 home]] |
+ | *[[Z^3 Language Documentation]] | ||
+ | *[[ZCubes_Videos | ZCubes Videos and Tutorials]] | ||
+ | *[[Main_Page | About ZCubes ]] | ||
+ | <br/> | ||
+ | <br/> | ||
+ | © Copyright 1996-2021, ZCubes, Inc. |
Latest revision as of 00:30, 11 March 2021
Prime Gaps
This video shows how to compute the gap between the prime numbers using ZCubes. You can easily generate large number of primes and get the gaps of these as a series and conduct further analysis.
Video
Code
ps=PRIMES(100000) .map((x,i,d)=>d[i]-d[i-1]) .slice(1) ~
© Copyright 1996-2021, ZCubes, Inc.