The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A167184 Smallest prime power >= n that is not prime. 3
1, 4, 4, 4, 8, 8, 8, 8, 9, 16, 16, 16, 16, 16, 16, 16, 25, 25, 25, 25, 25, 25, 25, 25, 25, 27, 27, 32, 32, 32, 32, 32, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 81, 81, 81, 81, 81, 81, 81, 81 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
For a(12), 12, 14, and 15 are not prime powers, and 13 is a prime power but it is prime. Since 16 = 2^4 is a prime power, a(12) = 16.
MATHEMATICA
Module[{ppwrs=Join[{1}, Sort[Flatten[Table[Prime[Range[5]]^p, {p, 2, 10}]]]]}, Flatten[ Table[Select[ppwrs, #>=n&, 1], {n, 90}]]] (* Harvey P. Dale, Oct 06 2014 *)
PROG
(PARI) isA025475(n) = (omega(n) == 1 & !isprime(n)) | (n == 1)
A167184(n) = {local(m); m=n; while(!isA025475(m), m++); m}
CROSSREFS
List of nonprime prime powers: A025475.
Previous nonprime prime power: A167185.
Next prime power including primes: A000015.
Sequence in context: A105352 A132200 A110757 * A276113 A232406 A322040
KEYWORD
easy,nonn
AUTHOR
Michael B. Porter, Oct 29 2009
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 May 17 07:15 EDT 2024. Contains 372579 sequences. (Running on oeis4.)