code: private static double scoreToPvalue(double score, int n1, int n2) {
          /*
          if(n1<=10 && n2<=10) {
              //calculate it from tables too small values
          }
          */
          double mean=n1*(n1+n2+1.0)/2.0;
          double variable=n1*n2*(n1+n2+1.0)/12.0;
  
          double z=(score-mean)/Math.sqrt(variable);
  
          return ContinuousDistributions.gaussCdf(z);
      }
docs: Returns the Pvalue for a particular score
  
  @param score
  @param n1
  @param n2
  @return