[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 A183058 (Underlined text is an addition; strikethrough text is a deletion.)

Showing entries 1-10 | older changes
A183058 Cyclops Sophie-Germain primes.
(history; published version)
#11 by Harvey P. Dale at Sat Jun 06 17:20:39 EDT 2020
STATUS

editing

approved

#10 by Harvey P. Dale at Sat Jun 06 17:20:36 EDT 2020
LINKS

Harvey P. Dale, <a href="/A183058/b183058.txt">Table of n, a(n) for n = 1..2000</a>

STATUS

approved

editing

#9 by Harvey P. Dale at Sat Jun 06 17:18:33 EDT 2020
STATUS

editing

approved

#8 by Harvey P. Dale at Sat Jun 06 17:18:30 EDT 2020
MATHEMATICA

csgpQ[n_]:=Module[{idn=IntegerDigits[n], len}, len=Length[idn]; PrimeQ[2n+1]&&OddQ[len]&&idn[[(len+1)/2]]==0&&Count[idn, 0]==1]; Select[Prime[ Range[ 4500]], csgpQ] (* Harvey P. Dale, Jun 06 2020 *)

STATUS

approved

editing

#7 by Jon E. Schoenfield at Sat Jan 05 23:26:25 EST 2019
STATUS

editing

approved

#6 by Jon E. Schoenfield at Sat Jan 05 23:26:19 EST 2019
MAPLE

for n from 0 to 50000 do if isA183058(n) then printf("%d, ", n); end if; end do: # : # _R. J. Mathar, _, Jan 05 2011

STATUS

approved

editing

#5 by Russ Cox at Fri Mar 30 17:34:05 EDT 2012
AUTHOR

_Omar E. Pol (info(AT)polprimos.com), _, Dec 26 2010

Discussion
Fri Mar 30 17:34
OEIS Server: https://oeis.org/edit/global/157
#4 by R. J. Mathar at Wed Jan 05 08:30:01 EST 2011
STATUS

proposed

approved

#3 by R. J. Mathar at Wed Jan 05 08:29:46 EST 2011
NAME

Cyclops-Sophie Sophie-Germain primes.

COMMENTS

Intersection of Sophie Germain primes which are andalso Cyclops numbers.

MAPLE

isA005384 := proc(n) isprime(n) and isprime(2*n+1) ; end proc:

isA134808 := proc(n) local dgs, ndgs; dgs := convert(n, base, 10) ; mdg := (nops(dgs)+1)/2 ; if type(nops(dgs), 'even') then false; elif n = 0 then true; else if op(mdg, dgs) <> 0 then false; else if mul(op(k, dgs), k=1..mdg-1) =0 or mul(op(k, dgs), k=mdg+1..nops(dgs)) = 0 then false; else true; end if; end if; end if; end proc:

isA183058 := proc(n) isA005384(n) and isA134808(n) ; end proc:

for n from 0 to 50000 do if isA183058(n) then printf("%d, ", n); end if; end do: # R. J. Mathar, Jan 05 2011

#2 by Omar E. Pol at Sun Dec 26 10:39:23 EST 2010
NAME

allocated for Omar E. Pol

Cyclops-Sophie Germain primes.

DATA

509, 809, 12011, 12041, 13049, 14081, 16091, 18041, 21011, 21089, 22013, 22079, 23099, 25073, 28019, 29021, 29033, 31019, 33023, 33053, 35069, 35081, 35099, 36083, 37013, 37049, 38039, 39089, 41081, 42023, 42071, 42089, 43013

OFFSET

1,1

COMMENTS

Intersection of Sophie Germain primes and Cyclops numbers.

FORMULA

A005384 INTERSECT A134808.

EXAMPLE

509 is in the sequence because 509 is a Sophie Germain prime A005384 and it is also a Cyclops number A134808.

CROSSREFS

Cf. A005384, A134808, A134809, A136098, A153807, A183059.

KEYWORD

allocated

nonn,base

AUTHOR

Omar E. Pol (info(AT)polprimos.com), Dec 26 2010

STATUS

approved

proposed

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 29 14:31 EDT 2024. Contains 375517 sequences. (Running on oeis4.)