OFFSET
1,1
FORMULA
Simply pass three consecutive integers through the formula that gives the area of a triangle from the three sides.
EXAMPLE
For triangle of sides 17,18,19 the formula gives 139.4 and this rounds to a prime.
MAPLE
Digits := 60 : isA106660 := proc(p) local q, r, s, area ; q := p+1 ; r := q+1 ; s := (p+q+r)/2 ; area := round(sqrt(s*(s-p)*(s-q)*(s-r))) ; RETURN(isprime(area)) ; end: for n from 1 to 900 do if isA106660(n) then printf("%d, ", n) ; fi ; od : # R. J. Mathar, Jun 08 2007
MATHEMATICA
With[{c=Sqrt[3]/4}, Select[Range[700], PrimeQ[Floor[1/2+c Sqrt[#^2 (#^2-4)]]]&] -1] (* Harvey P. Dale, Oct 25 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot, May 19 2007
EXTENSIONS
Corrected and extended by R. J. Mathar, Jun 08 2007
STATUS
approved