login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A014320 The next new gap between successive primes. 8
1, 2, 4, 6, 8, 14, 10, 12, 18, 20, 22, 34, 24, 16, 26, 28, 30, 32, 36, 44, 42, 40, 52, 48, 38, 72, 50, 62, 54, 60, 58, 46, 56, 64, 68, 86, 66, 70, 78, 76, 82, 96, 112, 100, 74, 90, 84, 114, 80, 88, 98, 92, 106, 94, 118, 132, 104, 102, 110, 126, 120, 148, 108, 122, 138 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Prime differences A001223 in natural order with duplicates removed. - Reinhard Zumkeller, Apr 03 2015

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 1..120

MATHEMATICA

max = 300000; allGaps = Transpose[ {gaps = Differences[ Prime[ Range[max]]], Range[ Length[gaps]]}]; equalGaps = Split[ Sort[ allGaps, #1[[1]] < #2[[1]] & ], #1[[1]] == #2[[1]] & ]; firstGaps = ((Sort[#1, #1[[1]] < #2[[1]] & ] & ) /@ equalGaps)[[All, 1]]; Sort[ firstGaps, #1[[2]] < #2[[2]] & ][[All, 1]] (* Jean-Fran├žois Alcover, Oct 21 2011 *)

PROG

(Haskell)

import Data.List (nub)

a014320 n = a014320_list !! (n-1)

a014320_list = nub $ a001223_list

-- Reinhard Zumkeller, Apr 03 2015

CROSSREFS

Cf. A001223.

Sequence in context: A094092 A072791 A058320 * A080377 A086526 A086529

Adjacent sequences:  A014317 A014318 A014319 * A014321 A014322 A014323

KEYWORD

nonn

AUTHOR

Hynek Mlcousek (hynek(AT)dior.ics.muni.cz)

EXTENSIONS

More terms from Sascha Kurz, Mar 24 2002

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 17 11:14 EDT 2019. Contains 326057 sequences. (Running on oeis4.)