primeQuadruples.frink

Download or view primeQuadruples.frink in plain text format

last = -999
for n = 1 to 1 billion step 10
{
   if isPrime[n] AND isPrime[n+2] AND isPrime[n+6] AND isPrime[n+8]
   {
      diff = n-last
      if diff <= 30
         println["$last\t$n\t$diff"]
      last = n
   }
}


Download or view primeQuadruples.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 20145 days, 18 hours, 43 minutes ago.