Bash

Print primes between any two numbers
for (( i=$1; i<=$2; i++ ));do l=$(factor $i | cut -d : -f 1) r=$(factor $i | cut -d : -f 2 | sed 's/ //g') if (( $l == $r ));then echo $i fi done
 * 1) !/bin/bash