C# 클래스 Mono.Math.Prime.PrimalityTests

파일 보기 프로젝트 열기: rackerlabs/openstack-guest-agents-windows-xenserver 1 사용 예제들

공개 메소드들

메소드 설명
RabinMillerTest ( BigInteger bi, ConfidenceFactor confidence ) : bool

Probabilistic prime test based on Rabin-Miller's test

SmallPrimeSppTest ( BigInteger bi, ConfidenceFactor confidence ) : bool

비공개 메소드들

메소드 설명
GetSPPRounds ( BigInteger bi, ConfidenceFactor confidence ) : int

메소드 상세

RabinMillerTest() 공개 정적인 메소드

Probabilistic prime test based on Rabin-Miller's test
public static RabinMillerTest ( BigInteger bi, ConfidenceFactor confidence ) : bool
bi BigInteger /// /// The number to test. /// ///
confidence ConfidenceFactor /// /// The number of chosen bases. The test has at least a /// 1/4^confidence chance of falsely returning True. /// ///
리턴 bool

SmallPrimeSppTest() 공개 정적인 메소드

public static SmallPrimeSppTest ( BigInteger bi, ConfidenceFactor confidence ) : bool
bi BigInteger
confidence ConfidenceFactor
리턴 bool