The Numbers
$e = $_POST['e'];
$d = $_POST['d'];
$p = $_POST['p'];
$n = $_POST['n'];
$q = $_POST['q'];
$phi = $_POST['phi'];
$mprivate = $_POST['mprivate'];
//echo " gcd($e,$phi) == ";
$big_num = `echo "a=$e; b=$phi; while(b) {a=a%b; r=b; b=a; a=r;}; a;" | bc `;
printf(" gcd($e,$phi) == %s
",$big_num);
if ($big_num == 1) {
printf("So these numbers are co-prime
the value for e is therefore acceptable
\n");
printf("