Difference between revisions of "ZCubes/Prime Gaps"
Jump to navigation
Jump to search
(Created page with "==Prime Gaps== <br/> 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 a...") |
(→Video) |
||
Line 7: | Line 7: | ||
{{#ev:youtube|hahaSRzmgFI|480|left|Prime Gaps}} | {{#ev:youtube|hahaSRzmgFI|480|left|Prime Gaps}} | ||
<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== | ||
+ | ps=PRIMES(100000) | ||
+ | .map((x,i,d)=>d[i]-d[i-1]) | ||
+ | .slice() | ||
+ | ~ | ||
Revision as of 03:56, 18 March 2020
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() ~
<< Learn ZCubes
© Copyright 1996-2020, ZCubes, Inc.