fork download
  1. #!/bin/bash
  2.  
  3. f(){
  4. seq 0 NaN|sed -r "h;/[12357]/d;s/8|0/&&/g;/^.{$1}/!d;x"|sed $2!d\;q
  5. }
  6.  
  7. for t in "1 5" "2 5"; do
  8. f $t
  9. done
Success #stdin #stdout 0.16s 5080KB
stdin
Standard input is empty
stdout
9
46