R/GCD.R

Defines functions GCD

Documented in GCD

GCD=function(x,y,k=0){
  if (y!=0){
    k=k+1
    GCD(y,x%%y,k)
  }else{    
    result=list(k=k,g=x)
    return(result)
  }
  
}

Try the CryptRndTest package in your browser

Any scripts or data that you put into this service are public.

CryptRndTest documentation built on April 22, 2022, 9:07 a.m.