fork download
  1. #!/bin/bash
  2.  
  3. f() {
  4. seq $1|factor|egrep -c :.\\S+$
  5. }
  6.  
  7. for testcase in 1 2 5; do
  8. f $testcase
  9. done
  10.  
Success #stdin #stdout 0s 5208KB
stdin
Standard input is empty
stdout
0
1
3