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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A181758 Greatest prime closest to n^3 0
2, 7, 29, 67, 127, 211, 347, 509, 727, 997, 1327, 1733, 2203, 2741, 3373, 4099, 4909, 5827, 6857, 7993, 9257, 10651, 12163, 13829, 15629, 17579, 19681, 21961, 24391, 26993, 29789, 32771, 35933, 39301, 42863, 46663, 50651, 54869, 59333, 63997, 68917, 74093, 79493, 85193, 91127, 97327, 103813, 110597, 117643, 125003 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..50.

EXAMPLE

29 is the greatest prime closest to 3^3 = 27

MATHEMATICA

f3[n_]:=Module[{n3=n^3, np1, np2}, np1=NextPrime[n3, -1]; np2=NextPrime[n3]; If[(n3-np1)<(np2-n3), np1, np2]];

Table[f3[i], {i, 50}]

CROSSREFS

A113426

Sequence in context: A116968 A162172 A274682 * A285790 A083016 A062064

Adjacent sequences:  A181755 A181756 A181757 * A181759 A181760 A181761

KEYWORD

nonn

AUTHOR

Harvey P. Dale

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 September 19 11:06 EDT 2019. Contains 327192 sequences. (Running on oeis4.)