cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A046063 Numbers k such that the k-th partition number A000041(k) is prime.

Original entry on oeis.org

2, 3, 4, 5, 6, 13, 36, 77, 132, 157, 168, 186, 188, 212, 216, 302, 366, 417, 440, 491, 498, 525, 546, 658, 735, 753, 825, 841, 863, 1085, 1086, 1296, 1477, 1578, 1586, 1621, 1793, 2051, 2136, 2493, 2502, 2508, 2568, 2633, 2727, 2732, 2871, 2912, 3027, 3098, 3168, 3342, 3542, 3641, 4118
Offset: 1

Views

Author

Keywords

Comments

The corresponding primes are given in A049575. - Joerg Arndt, May 09 2013

Crossrefs

Programs

  • Mathematica
    Select[ Range@3341, PrimeQ@ PartitionsP@# &] (* Robert G. Wilson v *)
  • PARI
    for(n=0,10^5,my(p=numbpart(n));if(isprime(p),print1(n,", "))); \\ Joerg Arndt, May 09 2013
    
  • Python
    from sympy import isprime, npartitions
    print([n for n in range(1, 5001) if isprime(npartitions(n))]) # Indranil Ghosh, Apr 10 2017

Extensions

b-file extended by Max Alekseyev, Jul 07 2009, Jun 14 2011, Jan 08 2012, May 19 2014