A177275 Primes which are a concatenation of some permutation of the first 5 primes.
112573, 115237, 115327, 211573, 235117, 257311, 327511, 352711, 357211, 372511, 511237, 511327, 511723, 521137, 521173, 572311, 711523, 725113, 735211, 751123
Offset: 1
Examples
a(1) = 11//2//5//7//3 = 112573 = prime(10668). a(5) = 2//3//5//11//7 = 235117 = prime(20845). a(20) = 7//5//11//2//3 = 751123 = prime(60315).
Programs
-
Maple
catL := proc(L) local a,i,dgs ; a := op(1,L) ; for i from 2 to nops(L) do dgs := max(1, 1+ilog10(op(i,L))) ; a := a*10^dgs+op(i,L) ; end do: a ; end proc: A177275 := proc() local pL,a,c ; pL := [seq(ithprime(c),c=1..5)] ; a := {} ; for c in combinat[permute](pL) do p := catL(c) ; if isprime(p) then a := a union {p} ; end if; end do: print(sort(a)) ; end proc: A177275() ; # R. J. Mathar, May 09 2010
Extensions
Added keyword:base,full. Removed the variable p. - R. J. Mathar and Zak Seidov, May 09 2010
Comments