First and last prime numbers with prime digits of range
Python 2, 123 bytes



def f(a,b):r=[i for i in range(a,b+1)if(set(`i`)&lt;=set('02357'))&gt;any(i%k&lt;1for k in range(3,i))];return len(r)and(r[0],r[-1])


Try it online!