A055932 Numbers all of whose prime divisors are consecutive primes starting at 2.
1, 2, 4, 6, 8, 12, 16, 18, 24, 30, 32, 36, 48, 54, 60, 64, 72, 90, 96, 108, 120, 128, 144, 150, 162, 180, 192, 210, 216, 240, 256, 270, 288, 300, 324, 360, 384, 420, 432, 450, 480, 486, 512, 540, 576, 600, 630, 648, 720, 750, 768, 810, 840, 864, 900, 960, 972
Offset: 1
Examples
60 is included because 60 = 2^2 * 3 * 5 and 2, 3 and 5 are consecutive primes beginning at 2. Sequence A057335 begins 1..2..4..6..8..12..18..30..16..24..36..60..54..90..150..210... which is equal to 1..2..2..3..2...3...3...5...2...3...3...5...3...5....5....7... times 1..1..2..2..4...4...6...6...8...8..12..12..18..18...30...30...
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000, first 1001 terms from Franklin T. Adams-Watters.
- Jon Awbrey, Riffs and Rotes.
- Michael De Vlieger, Extended table of n, a(n) for n = 1..100000.
- Robert Vajda, Computational Exploration of the Degree Sequence of the Malyshev Polynomials, Proceedings of the 11th International Conference on Applied Informatics (Eger, Hungary, 2020).
- Index entries for sequences related to prime signature.
Crossrefs
Programs
-
Magma
[1] cat [k:k in[2..1000 by 2]|forall{i:i in [1..#PrimeDivisors(k)-1]|NextPrime(pd[i]) in pd where pd is PrimeDivisors(k)}]; // Marius A. Burtea, Feb 01 2020
-
Maple
isA055932 := proc(n) local s,p ; s := numtheory[factorset](n) ; for p in s do if p > 2 and not prevprime(p) in s then return false; end if; end do: true ; end proc: for n from 2 to 100 do if isA055932(n) then printf("%d,",n) ; end if; end do: # R. J. Mathar, Oct 02 2012
-
Mathematica
Select[Range[1000], #==1||FactorInteger[ # ][[ -1, 1]]==Prime[Length[FactorInteger[ # ]]]&] cpQ[n_]:=Module[{f=Transpose[FactorInteger[n]][[1]]},f=={1}||f==Prime[ Range[Length[f]]]]; Select[Range[1000],cpQ] (* Harvey P. Dale, Jul 14 2012 *)
-
PARI
is(n)=my(f=factor(n)[,1]~);f==primes(#f) \\ Charles R Greathouse IV, Aug 22 2011
-
PARI
list(lim,p=2)=my(v=[1],q=nextprime(p+1),t=1);while((t*=p)<=lim,v=concat(v,t*list(lim\t,q))); vecsort(v) \\ Charles R Greathouse IV, Oct 02 2012
-
Python
from itertools import count, islice from sympy import primepi, primefactors def A055932_gen(startvalue=1): # generator of terms >= startvalue for k in count(max(startvalue,1)): p = list(map(primepi,primefactors(k))) if k==1 or (min(p)==1 and max(p)==len(p)): yield k A055932_list = list(islice(A055932_gen(),40)) # Chai Wah Wu, Aug 07 2025
Formula
Extensions
Edited by Daniel Forgues, Jan 24 2011
Comments