[go: up one dir, main page]

login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
Revision History for A152295 (Underlined text is an addition; strikethrough text is a deletion.)

Showing all changes.
A152295 Primes of the form : (p-n)/(n+1)=prime and (n+1)*p+n=prime. n=5.
(history; published version)
#4 by Harvey P. Dale at Tue Jul 29 13:04:29 EDT 2014
STATUS

editing

approved

#3 by Harvey P. Dale at Tue Jul 29 13:04:21 EDT 2014
LINKS

Harvey P. Dale, <a href="/A152295/b152295.txt">Table of n, a(n) for n = 1..3000</a>

MATHEMATICA

Select[Prime[Range[1000]], AllTrue[{(#-5)/6, 6#+5}, PrimeQ]&] (* This program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 29 2014 *)

STATUS

approved

editing

#2 by Russ Cox at Sat Mar 31 12:38:17 EDT 2012
AUTHOR

_Vladimir Joseph Stephan Orlovsky (4vladimir(AT)gmail.com), _, Dec 02 2008

Discussion
Sat Mar 31 12:38
OEIS Server: https://oeis.org/edit/global/876
#1 by N. J. A. Sloane at Fri Jan 09 03:00:00 EST 2009
NAME

Primes of the form : (p-n)/(n+1)=prime and (n+1)*p+n=prime. n=5.

DATA

17, 71, 83, 107, 191, 227, 251, 263, 431, 443, 479, 503, 587, 827, 839, 911, 983, 1091, 1151, 1163, 1187, 1619, 1667, 1847, 1907, 2087, 2243, 2459, 2591, 3023, 3467, 4463, 4871, 4943, 5471, 5519, 5651, 5807, 5903, 6131, 6203, 6299, 6311, 6563, 6983, 7127

OFFSET

1,1

COMMENTS

This is the general form : (p-n)/(n+1)=primeand(n+1)*p+n=prime; 'Safe' primes and'Sophie Germain' primes just one part of this general form; If n=1 then we got'Safe' primes and'Sophie Germain' primes.

MATHEMATICA

lst={}; n=5; Do[p=Prime[k]; If[PrimeQ[(p-n)/(n+1)]&&PrimeQ[(n+1)*p+n], AppendTo[lst, p]], {k, 7!}]; lst

CROSSREFS

Cf. A059455, A152292, A152293, A152294

KEYWORD

nonn

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Dec 02 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 31 08:34 EDT 2024. Contains 375560 sequences. (Running on oeis4.)