#!/bin/bash

for ((i=2;i<=100;i++));do
    flag=true
    for ((j=2;j<i;j++));do
        if test $(( $i % $j ))  -eq 0 ;then
            flag=false
            break
        fi
    done
    if $flag ;then
        echo $i
    fi
done