# Path: mom/_prime_sieve.py
# def make_prime_sieve(max_n):  # def _numpy_primesfrom2to(max_n):
# def make_prime_sieve(max_n):  # def _rwh_primes1(max_n):
# 
# Path: mom/math.py
# def gcd(num_a, num_b):
# def lcm(num_a, num_b):
# def inverse_mod(num_a, num_b):
# def exact_log2(number):
# def _pure_pow_mod(base, power, modulus):
# def _pure_is_prime(num, iterations=5, _sieve=prime_sieve.SIEVE):
# def generate_random_prime(bits):
# def generate_random_safe_prime(bits):


import unittest2
from mom import _prime_sieve
from mom import math
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import





__author__ = "yesudeep@google.com (Yesudeep Mangalapilly)"


class Test__pure_is_prime(unittest2.TestCase):
  def test_pure_is_prime_for_sieves(self):
    for i in [10, 100, 1000, 10000]:

# Path: mom/_prime_sieve.py
# def make_prime_sieve(max_n):  # def _numpy_primesfrom2to(max_n):
# def make_prime_sieve(max_n):  # def _rwh_primes1(max_n):
# 
# Path: mom/math.py
# def gcd(num_a, num_b):
# def lcm(num_a, num_b):
# def inverse_mod(num_a, num_b):
# def exact_log2(number):
# def _pure_pow_mod(base, power, modulus):
# def _pure_is_prime(num, iterations=5, _sieve=prime_sieve.SIEVE):
# def generate_random_prime(bits):
# def generate_random_safe_prime(bits):


# Path: mom/tests/test_mom_math.py
import unittest2
from mom import _prime_sieve
from mom import math

#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2011 Yesudeep Mangalapilly <yesudeep@gmail.com>
# Copyright 2012 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import





__author__ = "yesudeep@google.com (Yesudeep Mangalapilly)"


class Test__pure_is_prime(unittest2.TestCase):
  def test_pure_is_prime_for_sieves(self):
    for i in [10, 100, 1000, 10000]:

      sieve = _prime_sieve.make_prime_sieve(i)