Difference between revisions of "ZCubes/How to Apply Prime Squares and 24"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "==How to Apply Prime Squares and 24== <br/> Square of primes show and interesting property. If you square the prime numbers and subtract 1 from them, you will observe that all...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
==Video==
 
==Video==
 
<br/>
 
<br/>
{{#ev:youtube|o2m8FD8LcvQ|480|center|Prime Squares and 24!}}
+
{{#ev:youtube|o2m8FD8LcvQ|480|left|Prime Squares and 24!}}
 
<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==
 +
PRIMES(100)
 +
  .$("x^2")
 +
  .$(x=>x-1)
 +
  .$(x=>x%24)
 +
PRIMES(10000)
  
<<[[Learn_ZCubes | Learn ZCubes ]]
+
 
 +
<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 12:44, 14 September 2021

How to Apply Prime Squares and 24


Square of primes show and interesting property. If you square the prime numbers and subtract 1 from them, you will observe that all numbers are multiples of 24, except the first two numbers. This video demonstrates how to compute this easily. Go ahead, try this out using ZCubes.

Video


Prime Squares and 24!















Code

PRIMES(100)
 .$("x^2")
 .$(x=>x-1)
 .$(x=>x%24)
PRIMES(10000)





© Copyright 1996-2020, ZCubes, Inc.