Facebook
From rifaT, 1 Year ago, written in Plain Text.
This paste is a reply to https://pastebin.pl/view/24480661 from Innocent Lemur - view diff
Embed
Download Paste or View Raw
Hits: 470
  1. function prime()
  2. {
  3.     for((i=2; i<=num; i++))
  4.     do
  5.         if [ `expr $num % $i` == 0 ]
  6.         then
  7.             echo $num is not prime
  8.             exit
  9.         fi
  10.     done
  11.     echo $num is a prime number
  12. }
  13.  
  14. read num;
  15. 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.