Skip to content

Instantly share code, notes, and snippets.

@tanakh
Last active May 24, 2019 08:44
Show Gist options
  • Save tanakh/676e9a38d451c9d852b18cbbe342534d to your computer and use it in GitHub Desktop.
Save tanakh/676e9a38d451c9d852b18cbbe342534d to your computer and use it in GitHub Desktop.
20190823
20300317
20360317
20400307
20400823
20480107
20600317
20660617
20700103
20700223
20700307
20700523
20721013
20910103
20930113
21000313
21000907
21050503
#!/usr/bin/bash -e
for i in $(seq 1 36500);
do
d=$(date -d +${i}day +'%Y%m%d')
# echo $d
ok=1
for j in $(seq 1 8);
do
f=$(factor $(tail -c+$j <(echo $d)) | wc -w)
if ((f != 2)); then
ok=0
break
fi
done
if ((ok)); then
echo $d
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment