<jupyter_start><jupyter_text>GCD最大公约数计算<jupyter_code>from functools import reduce
import math

def gcd(numbers):
    return reduce(math.gcd, numbers)

gcd([10,30,55])<jupyter_output><empty_output><jupyter_text>LCM最小公倍数计算<jupyter_code>def lcm(numbers):
    
    def __lcm(x, y):
        return int(x * y / math.gcd(x,y))
    
    return reduce(lambda x,y: __lcm(x,y), numbers)

lcm([10,30,60])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14218009478672985, 'fraction_numerical': 0.02843601895734597, 'mean_word_length': 5.609375, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '471279', 'license': 'MIT', 'n_tokens_mistral': 199, 'n_tokens_neox': 194, 'n_words': 26, 'path': 'test/math_GCD&LCM.ipynb', 'repo_name': 'dyslab/jnb-sample', 'size': '422'}