primeQuadruples.frink

View or download 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
   }
}


View or download 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 17651 days, 5 hours, 24 minutes ago.