Difference between revisions of "ZCubes/How to Apply Prime Squares and 24"
Jump to navigation
Jump to search
(→Video) |
|||
Line 8: | Line 8: | ||
<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) | ||
Revision as of 03:57, 11 March 2020
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
Code
PRIMES(100) .$("x^2") .$(x=>x-1) .$(x=>x%24) PRIMES(10000)
<< Learn ZCubes
© Copyright 1996-2020, ZCubes, Inc.