FiSGO.PrimesHandler
Module implementing prime number handling functions.
Functions
Given integers n, d, returns the integer m such that d**m divides n but d**(m+1) does not divide n. |
|
Given an integer n, it attempts to find the prime factors of n. Returns a tuple: |
|
Given two integers n and d, returns True if there exists a positive integer m such that n = d**m, returns False otherwise. |
|
Given an integer n, returns True if it is prime and False if it is not. |
|
Given an integer n, returns the nth prime number. |
|
Given an integer n, returns a list of the first n primes in file primes_path using |
|
Given a list of integers 'powers', computes the product N of the first len(powers) primes raised to the integers of 'powers', returns N*leftover. |
|
Given integers n, upper_bound, returns a tuple containing: |
|
Given integers n, primes, returns a tuple containing: |
|
Given an integer n, returns a generator of the first n primes in file primes_path. |
|
Given an integer n, returns a generator of all primes less than n in file primes_path. |
|
Given an integer n, returns a list of all primes less than n in file primes_path using |