<jupyter_start><jupyter_text><jupyter_code>import math

def sieve_prime(n):
  prime = [True]*n
  prime[0], prime[1] = False, False
  for x in range(2, math.floor(n)):
    for p in range(2*x, math.floor(n), x):
      prime[p] = False
  return [i for i in range(n) if prime[i]]
sieve_prime(20)
[x for x in range(21)]
[i for i in range(6) if [True, True, False, True, False, True][i]]
for x in range(2, math.floor(20)):
  for p in range(2*x, math.floor(20), x):
    print(p)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.17165668662674652, 'fraction_numerical': 0.029940119760479042, 'mean_word_length': 4.397849462365591, 'pattern_counts': {'":': 0, '<': 5, '<?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': '324352', 'license': 'MIT', 'n_tokens_mistral': 215, 'n_tokens_neox': 209, 'n_words': 61, 'path': 'sieve_of_eratosthenes.ipynb', 'repo_name': 'ravi-kr/Universe', 'size': '501'}