Difference between revisions of "ZCubes/How to Apply Primorial Numbers"
(→Video) |
|||
Line 9: | Line 9: | ||
+ | ==Examples== | ||
+ | E.g 1] To find prime numbers till the 'n'th prime numbers, use ZCubes command as - | ||
+ | '''<math>PRIMES(100)</math>''' | ||
+ | |||
+ | |||
+ | displays prime numbers till 100 as | ||
+ | </br>2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 | ||
+ | |||
+ | |||
+ | E.g 2] To find primorial number series for the prime numbers in the range of 1 to 100, use ZCubes code as - | ||
+ | |||
+ | '''<math>PRIMES(100)</math>''' | ||
+ | |||
+ | '''<math>.allslices()</math>''' ...splits the prime number series as 2, 2 3, 2 3 5, 2 3 5 7, and so on | ||
+ | |||
+ | '''<math>.slice(1)</math>''' ...removes first number '2' from the series | ||
+ | |||
+ | '''<math>.$$(r=>PRODUCT(r))</math>''' ...displays the product of numbers from each row e.g 6 , 30, 210 and so on | ||
+ | |||
+ | displays primorial series as - | ||
+ | |||
+ | </br>6 | ||
+ | </br>30 | ||
+ | </br>210 | ||
+ | </br>2310 | ||
+ | </br>30030 | ||
+ | </br>510510 | ||
+ | </br>9699690 | ||
+ | </br>223092870 | ||
+ | </br>6469693230 | ||
+ | </br>200560490130 | ||
+ | </br>7420738134810 | ||
+ | </br>304250263527210 | ||
+ | </br>13082761331670030 | ||
+ | </br>614889782588491400 | ||
+ | </br>32589158477190046000 | ||
+ | </br>1.9227603501542128e+21 | ||
+ | </br>1.1728838135940697e+23 | ||
+ | </br>7.858321551080267e+24 | ||
+ | </br>5.57940830126699e+26 | ||
+ | </br>4.072968059924903e+28 | ||
+ | </br>3.2176447673406735e+30 | ||
+ | </br>2.670645156892759e+32 | ||
+ | </br>2.3768741896345556e+34 | ||
+ | </br>2.3055679639455188e+36 | ||
+ | |||
+ | |||
+ | |||
<<[[Learn_ZCubes | Learn ZCubes ]] | <<[[Learn_ZCubes | Learn ZCubes ]] | ||
<br/> | <br/> | ||
© Copyright 1996-2020, ZCubes, Inc. | © Copyright 1996-2020, ZCubes, Inc. |
Revision as of 03:48, 13 March 2020
How to Apply Primorial Numbers
Primorial number is the product of prime numbers till the nth prime number. In ZCubes you can easily compute the special numbers like primorial numbers using the inbuilt functions.
Video
Examples
E.g 1] To find prime numbers till the 'n'th prime numbers, use ZCubes command as -
displays prime numbers till 100 as
2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97
E.g 2] To find primorial number series for the prime numbers in the range of 1 to 100, use ZCubes code as -
...splits the prime number series as 2, 2 3, 2 3 5, 2 3 5 7, and so on
...removes first number '2' from the series
...displays the product of numbers from each row e.g 6 , 30, 210 and so on
displays primorial series as -
6
30
210
2310
30030
510510
9699690
223092870
6469693230
200560490130
7420738134810
304250263527210
13082761331670030
614889782588491400
32589158477190046000
1.9227603501542128e+21
1.1728838135940697e+23
7.858321551080267e+24
5.57940830126699e+26
4.072968059924903e+28
3.2176447673406735e+30
2.670645156892759e+32
2.3768741896345556e+34
2.3055679639455188e+36
<< Learn ZCubes
© Copyright 1996-2020, ZCubes, Inc.