Difference between revisions of "ZCubes/How to Apply Primorial Numbers"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "==How to Apply Primorial Numbers== <br/> Primorial number is the product of prime numbers till the nth prime number. In ZCubes you can easily compute the special numbers like...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
==Video==
 
==Video==
 
<br/>
 
<br/>
{{#ev:youtube|wlahivt_FOY|480|center|Primorial Numbers}}
+
{{#ev:youtube|wlahivt_FOY|480|left|Primorial Numbers}}
 
<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/>
  
  
 +
==Examples==
 +
E.g 1] To find prime numbers till the 'n'th prime numbers, use ZCubes command as -
  
<<[[Learn_ZCubes | Learn ZCubes ]]
+
'''<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
 +
 
 +
 
 +
 +
<br/>
 +
*[[Z3 | Z3 home]]
 +
*[[Z^3 Language Documentation]]
 +
*[[ZCubes_Videos | ZCubes Videos and Tutorials]]
 +
*[[Main_Page | About ZCubes ]]
 +
<br/>
 
<br/>
 
<br/>
 
&copy; Copyright 1996-2020, ZCubes, Inc.
 
&copy; Copyright 1996-2020, ZCubes, Inc.

Latest revision as of 13:05, 14 September 2021

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


Primorial Numbers















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





© Copyright 1996-2020, ZCubes, Inc.