Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A072680
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A072680 Difference between (least prime >= n) and (largest prime <= n). +0
3
0, 0, 2, 0, 2, 0, 4, 4, 4, 0, 2, 0, 4, 4, 4, 0, 2, 0, 4, 4, 4, 0, 6, 6, 6, 6, 6, 0, 2, 0, 6, 6, 6, 6, 6, 0, 4, 4, 4, 0, 2, 0, 4, 4, 4, 0, 6, 6, 6, 6, 6, 0, 6, 6, 6, 6, 6, 0, 2, 0, 6, 6, 6, 6, 6, 0, 4, 4, 4, 0, 2, 0, 6, 6, 6, 6, 6, 0, 4, 4, 4, 0, 6, 6, 6, 6, 6, 0, 8, 8, 8, 8, 8, 8, 8, 0, 4, 4, 4, 0, 2, 0, 4, 4, 4 (list; graph; listen)
OFFSET

2,3

COMMENT

a(n)=0 iff n is prime.

FORMULA

a(n) = A057427(n - A007917(n)) * A001223(A049084(A007917(n))).

PROGRAM

(Mupad) numlib::prevprime(i)*(-1)-nextprime(i)*(-1)$ i = 2..106 - Zerinvary Lajos (zerinvarylajos(AT)yahoo.com), Feb 26 2007

CROSSREFS

a(n) = A007918(n) - A007917(n).

Cf. A072681, A013633.

Sequence in context: A051629 A052120 A029186 this_sequence A067770 A079200 A011420

Adjacent sequences: A072677 A072678 A072679 this_sequence A072681 A072682 A072683

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller (reinhard.zumkeller(AT)gmail.com), Jul 01 2002

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 1 19:22 EST 2009. Contains 167811 sequences.


AT&T Labs Research