Example #1
0
import my_module


consecutives = 0
for i in xrange(1, 1000000):
    if consecutives == 4:
        break
    if len(my_module.get_distinct_prime_factors(i)) == 4:
        consecutives += 1
    else:
        consecutives = 0

print(i - 4)
Example #2
0
 def test_get_distinct_prime_factors(self):
     self.assertEqual(my_module.get_distinct_prime_factors(12), [2, 3])