Shell script to print all prime numbers from 1 to n
clear echo "enter the range" read n echo "the prime no are:" m=2 while [ $m -le $n ] do i=2 flag=0 while [ $i -le `expr $m / 2`…
q
clear echo "enter the range" read n echo "the prime no are:" m=2 while [ $m -le $n ] do i=2 flag=0 while [ $i -le `expr $m / 2`…