Facebook
From rifaT, 1 Year ago, written in Plain Text.
This paste is a reply to https://pastebin.pl/view/24480661 from Innocent Lemur - go back
Embed
https://pastebin.pl/view/24480661https://pastebin.pl/view/24480661function prime()
{
    for((i=2; i<=num; i++))
    do
        if [ `expr $num % $i` == 0 ]
        then
            echo $num is not prime
            exit
        fi
    done
    echo $num is a prime number
}

read num;
prime "$num";

Replies to Re: https://pastebin.pl/view/24480661 rss

Title Name Language When
Re: Re: https://pastebin.pl/view/24480661 Big Echidna text 1 Year ago.