OFFSET
1,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
EXAMPLE
98 is in the sequence because prime(98) = 521, which has no digits in common with 98.
MATHEMATICA
Select[Range[110], Intersection[IntegerDigits[#], IntegerDigits[Prime[#]]]=={}&] (* Harvey P. Dale, Aug 11 2023 *)
PROG
(PARI) s=[]; for(n=1, 300, if(setintersect(vecsort(digits(n), , 8), vecsort(digits(prime(n)), , 8))==[], s=concat(s, n))); s
(Haskell)
import Data.List (intersect)
a243355 n = a243355_list !! (n-1)
a243355_list = filter
(\x -> null $ show x `intersect` (show $ a000040 x)) [1..]
-- Reinhard Zumkeller, Sep 14 2014
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Colin Barker, Jun 03 2014
STATUS
approved