<jupyter_start><jupyter_text><jupyter_code>lst=list(range(1000))
def getArmstrongNumberGen(lst):
    for num in lst:
        order=len(str(num))
        sum=0
        temp=num
    while temp>0:
      digit=temp%10
      sum+=digit**order
      temp//=10
    if num==sum:
       yield num
list(getArmstrongNumberGen(lst))
def is_prime(number):
    for element in range(number):
        if number % element == 0:
            return False

    return True

def print_next_prime(number):
    index = number
    while True:
        index += 1
        if is_prime(index):
            print(index)
%%writefile print_next_prime.py
import unittest
from primes import is_prime

class primesTestCase(unittest.TestCase):

    def test_is_prime(self):
        self.assertTrue(is_prime(5))

if __name__ == '__main__':
    unittest.main()<jupyter_output>Overwriting print_next_prime.py
{'fraction_non_alphanumeric': 0.10114942528735632, 'fraction_numerical': 0.014942528735632184, 'mean_word_length': 2.9411764705882355, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '430086', 'license': 'Apache-2.0', 'n_tokens_mistral': 297, 'n_tokens_neox': 285, 'n_words': 63, 'path': 'Day9.ipynb', 'repo_name': 'Arnipalli-Naveen/Assignment-python', 'size': '870'}