Skip to content

Instantly share code, notes, and snippets.

import math
def GCD(a , b):
if(b == 0):
return a
return GCD(b, a - math.floor(a/b)*b)
# Input values here and run
print(GCD(9876, 54321))
// FOR THE PURPOSES of this code sample, some code essential
// for the functioning of this script was removed.
// Please view the "Finding PPTs" page source of
// http://pramodk.net/GT/MATH2803/PPTs/
// to see a functional example.
$("input[name='submit']").click(function () { // Upon clicking the submit button, run this function
// Get the input values
var maxS = $("input[name='s_bound']").val();