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!)
A077722 Primes which can be expressed as sums of distinct powers of 8. 13
73, 521, 577, 4673, 32833, 33289, 33353, 36929, 37441, 262153, 262217, 262657, 295433, 299017, 299521, 2097673, 2101249, 2101313, 2134529, 2359369, 2359873, 2363393, 2363401, 2392073, 16777289, 16777729, 16810049, 16810561, 16814089 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Primes whose base 8 representations contain only 0's and 1's.
Intersection of A000040 and A033045. - Michel Marcus, Sep 14 2013
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) isok(n) = {digs = digits(n, 8); for (i = 1, #digs, if (digs[i] > 1, return (0)); ); return (1); }
lista(nn) = {forprime (p=1, nn, if (isok(p), print1(p, ", "); ); ); } \\ Michel Marcus, Sep 14 2013
(PARI) forstep(n=7, 999, 2, t=fromdigits(binary(n), 8); if(isprime(t), print1(t", "))) \\ Charles R Greathouse IV, Jun 08 2015
CROSSREFS
Sequence in context: A227340 A043427 A038485 * A235465 A201263 A210390
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 19 2002
EXTENSIONS
More terms from Francois Jooste (phukraut(AT)hotmail.com), Dec 23 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:06 EDT 2024. Contains 371964 sequences. (Running on oeis4.)