A Computing Network written in Java extremely inefficient.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

14 lines
222 B

#!/bin/bash
public="14012539"
mod="4862802614"
for i in `seq 1 $mod`
do
let out=( $i * $public ) % $mod
if [ $out == 1 ]
then
echo "$i true"
exit 0
else
echo "$i false"
fi
done