This video computes the devil's primes, for example, the number 16661, 1 followed by thirteen 0s then 666 and then thirteen 0s and then ending with 1. These are called devil's prime due to common beliefs around the numbers 666 and 13 etc. Z has a built-in function to check if a number is a prime number and also can deal with large integer computations. This ability opens up our capability to discover interesting numbers and patterns and their specialties.
ops.on; (n=>(((10n^(n+1)+(666))*(10n^(n-1)))+1))@1..20 (n=>(((10n^(n+1)+(666))*(10n^(n-1)))+1))@2..200 a.map((x,i)=>([i,ISPRIME(x)])) .filter(r=>r))
<< About ZCubes
© Copyright 1996-2020, ZCubes, Inc.