ZCubes/Prime Squares and 24!

From ZCubes Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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-2021, ZCubes, Inc.