OFFSET
1,1
COMMENTS
31 and 37 are primes.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
If k=9, then 3137k = 31379 (prime).
If k=83, then 3137k = 313783 (prime).
MAPLE
a:=proc(n) local z: z:=nops(convert(n, base, 10)): if isprime(3137*10^z+n)=true then n else fi end: seq(a(n), n=1..1000); # Emeric Deutsch, Jul 02 2005
MATHEMATICA
Select[Range[900], PrimeQ[3137*10^IntegerLength[#]+#]&] (* Harvey P. Dale, Mar 19 2015 *)
PROG
(Magma) [ n: n in [1..900] | IsPrime(Seqint(Intseq(n) cat [7, 3, 1, 3])) ]; // Vincenzo Librandi, Feb 03 2011
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Parthasarathy Nambi, Jun 25 2005
EXTENSIONS
More terms from Emeric Deutsch, Jul 02 2005
STATUS
approved