#!/bin/bash f(){seq 0 NaN|sed -r "h;/[12357]/d;s/8|0/&&/g;/^.{$1}/!d;x"|sed $2!d\;q} for t in "1 5" "2 5"; do f $tdone
Standard input is empty
9 46
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!