0% found this document useful (0 votes)
16 views1 page

VVVVV

Uploaded by

Ravi Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

VVVVV

Uploaded by

Ravi Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

echo enter m and n

read m n
k=0
for i in $( seq m n )
do
for a in $( seq 2 $( expr $a-1 ))
do
if [ $(expr $a % $i ) -eq 0 ]
then
k=1
break
fi
done
if [[ $k -eq 0 ]]
then
echo $a
fi
done

You might also like