A224848
Reverse concatenation of the square of first a(n) integers gives a prime.
Original entry on oeis.org
2, 3, 14, 700, 2818
Offset: 1
a(4) = 700 because reverse concatenation of squares of 1 to 700 gives 490000488601......2516941 which is a 3742-digit prime number.
A261716
Odd numbers that result in a prime when their cubes are concatenated with the cubes of all smaller odd numbers in descending order.
Original entry on oeis.org
3, 27, 115, 643
Offset: 1
A000578(3) = 27. The only odd number less than 3 is 1 with A000578(1) = 1. Concatenating the two resulting cubes in descending order one gets 271 which is prime, so 3 is a term of the sequence.
-
fQ[n_] := PrimeQ[ FromDigits[ Flatten[ IntegerDigits[ Range[2n - 1, 1, -2]^3]]]]; k = 1; lst = {}; While[k < 1501, If[ fQ[k], AppendTo[lst, 2k - 1]; Print[2k - 1]]; k++]; lst (* Robert G. Wilson v, Sep 16 2015 *)
-
odd(n) = 2*n-1
con(n) = s=""; k=n; while(k > 0, s=Str(s, Str(odd(k)^3)); k--); eval(s)
isok(n) = ispseudoprime(con(n))
terms(n) = i=0; x=1; while(i < n, if(isok(x), print1(odd(x), ", "); i++); x++)
terms(4) \\ print initial four terms
Comments