OFFSET
1,1
COMMENTS
This sequence gives the primes p where not every positive integer k <= q-p divides p-1, where q is the prime immediately after p.
MAPLE
isA141831 := proc(p) local q, d ; if isprime(p) then q := nextprime(p) ; for d from 1 to q-p do if (p+d-1) mod d <> 0 then RETURN(true) ; fi; od: RETURN(false) ; else false; fi; end: for i from 1 to 300 do p := ithprime(i) ; if isA141831(p) then printf("%d, ", p) ; fi; od: # R. J. Mathar, Aug 08 2008
MATHEMATICA
fQ[n_] := Block[{p = n, q = NextPrime@ n}, Union[IntegerQ /@ (Range[p, q - 1]/Range[q - p])][[1]]]; Select[ Prime@ Range@ 92, !fQ@ # &] (* Robert G. Wilson v *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jul 09 2008
EXTENSIONS
Extended beyond 53 by R. J. Mathar, Aug 08 2008
STATUS
approved