code for finding cuban primes

cuban primes have the form (n+1)^3 - n^3. eg: 7 (2^3-1^3), 19,37,61,...