<commit_before>def check(n, primes):
    count = 0
    for num in primes:
        if n % num != 0:
            count = count + 1
    return (len(primes) == count)
def prime(n):
    a = 2
    primes = []
    if n > 2:
        primes = [2]
        while len(primes) < n:
            a = a + 1
            if check(a, primes):
                primes.append(a)
    return primes
def run():
    number_wanted = int(input("Number of Primes (must be positive and not equal to 0)"))
    primes = prime(number_wanted)
    if number_wanted <= 0:
        print("Number of Primes must be positive and not equal to 0")
        yes_or_no = input("Try again? (yes or no) \n")
        if yes_or_no == "yes":
            run()
    else:
        primes = prime(number_wanted)
        for num in primes:
            print(num)
run()<commit_msg> Add different ways to print the primes<commit_after>def check(n, primes):
    count = 0
    for num in primes:
        if n % num != 0:
            count = count + 1
    return (len(primes) == count)
def prime(n):
    a = 2
    primes = []
    if n > 2:
        primes = [2]
        while len(primes) < n:
            a = a + 1
            if check(a, primes):
                primes.append(a)
    return primes
def printPrimesEasily(n):
    a = 2
    if n > 2:
        primes = [2]
        while len(primes) < n:
            a = a + 1
            if check(a, primes):
                primes.append(a)
                print(a)
def run():
    number_wanted = int(input("Number of Primes (must be positive and not equal to 0)"))
    way = input("Do you want to print primes successively or all at once (s or all)?")
    if number_wanted <= 0:
        print("Number of Primes must be positive and not equal to 0")
        yes_or_no = input("Try again? (yes or no) \n")
        if yes_or_no == "yes":
            run()
    else:
        if way == "all":
            primes = prime(number_wanted)
            for num in primes:
                print(num)
        elif way == "s":
            printPrimesEasily(number_wanted)
        else:
            print("Try s or all next time")
            yes_or_no = input("Try again? (yes or no) \n")
            if yes_or_no == "yes":
                run()
run()
{'fraction_non_alphanumeric': 0.11146067415730337, 'fraction_numerical': 0.010786516853932584, 'mean_word_length': 1.6188235294117648, 'pattern_counts': {'":': 5, '<': 8, '<?xml version=': 0, '>': 6, '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}}
{'dir': 'git-commits-cleaned', 'id': '4359781', 'n_tokens_mistral': 745, 'n_tokens_neox': 695, 'n_words': 246}