<commit_before>val target: Long = 600851475143L

def sundaramSieve(max: Long): Seq[Long] = {
  val range = (2L to max)
  range.diff(for {
    i <- range
    j <- for {
      other <- range
    } yield other
    candidate = i + j + 2 * i * j if (1 <= i) && (i <= j) && (candidate <= max)
  } yield candidate).map(_ * 2 + 1)<commit_msg>simplify scala solution to 3<commit_after>val target: Long = 600851475143L

def sundaramSieve(max: Long): Seq[Long] = {
  val range = (2L to max)
  range.diff(for {
    i <- range
    j <- range
    candidate = i + j + 2 * i * j if (1 <= i) && (i <= j) && (candidate <= max)
  } yield candidate).map(_ * 2 + 1)
{'fraction_non_alphanumeric': 0.16459627329192547, 'fraction_numerical': 0.05434782608695652, 'mean_word_length': 2.6440677966101696, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5729964', 'n_tokens_mistral': 273, 'n_tokens_neox': 244, 'n_words': 77}