%I #20 Feb 16 2025 08:33:19
%S 1,7,42,263,1965,15282,126826
%N Number of primes of the form (x+1)^3 - x^3 with x <= 10^n.
%C Cuban primes are primes that are the difference of two consecutive cubes, p = (x+1)^3 - x^3 (A002407). They are also primes of the form 3k(k+1) + 1, where values for k+1 are in A002504.
%H Ed Pegg, Jr., <a href="https://mathworld.wolfram.com/CubanPrime.html">MathWorld: Cuban Prime</a>
%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Cuban_prime">Cuban prime</a>
%Y Cf. A002407, A002504, A003215, A113478 (number of cuban primes < 10^n).
%K nonn,changed
%O 0,2
%A _Vladimir Pletser_, Jan 25 2013