num_theory.get_primes ===================== .. py:module:: num_theory.get_primes Functions --------- .. autoapisummary:: num_theory.get_primes.get_primes Module Contents --------------- .. py:function:: get_primes(num: int) -> list Returns the list of all prime numbers less than or equal to n. :param n: :type n: int. :rtype: list (containing integers) .. rubric:: Examples >>> get_primes(14) [2, 5, 7, 11, 13] >>> get_primes(5) [2, 5] >>> get_primes(-2) []