Sandwich Primes - ( the term I coined ;)), inspired by this post by Pat Ballew https://www.linkedin.com/posts/pat-ballew-5b1935102_mathfacts-activity-6769661475427491841-F4n-, are primes p, such that 1p1, 3p3, 7p7 and 9p9 are all primes.
This code finds all sandwich primes in the set of first 10000 primes.