number.pyi 994 B

1234567891011121314151617181920
  1. from typing import List, Optional, Callable
  2. def ceil_div(n: int, d: int) -> int: ...
  3. def size (N: int) -> int: ...
  4. def getRandomInteger(N: int, randfunc: Optional[Callable]=None) -> int: ...
  5. def getRandomRange(a: int, b: int, randfunc: Optional[Callable]=None) -> int: ...
  6. def getRandomNBitInteger(N: int, randfunc: Optional[Callable]=None) -> int: ...
  7. def GCD(x: int,y: int) -> int: ...
  8. def inverse(u: int, v: int) -> int: ...
  9. def getPrime(N: int, randfunc: Optional[Callable]=None) -> int: ...
  10. def getStrongPrime(N: int, e: Optional[int]=0, false_positive_prob: Optional[float]=1e-6, randfunc: Optional[Callable]=None) -> int: ...
  11. def isPrime(N: int, false_positive_prob: Optional[float]=1e-6, randfunc: Optional[Callable]=None) -> bool: ...
  12. def long_to_bytes(n: int, blocksize: Optional[int]=0) -> bytes: ...
  13. def bytes_to_long(s: bytes) -> int: ...
  14. def long2str(n: int, blocksize: Optional[int]=0) -> bytes: ...
  15. def str2long(s: bytes) -> int: ...
  16. sieve_base: List[int]