summaryrefslogtreecommitdiff
path: root/euler41.sh
blob: 133d89451c5b297f3b35a21ade11a800f0265ef9 (plain)
1
2
3
# Pandigital prime is at most 7 digits, because 1+...+8 and 1+...+9 is multiply of 3
for i in 76{1..5}{1..5}{1..5}{1..5}{1,3,5} ; do factor $i; done | sed -e '/[0-9] /d' | cut -d':' -f1 \
  | sed $(for i in {1..7} ; do printf '\x2de /%d.*%d/d ' $i $i ; done)