{'fraction_non_alphanumeric': 0.01838235294117647, 'fraction_numerical': 0.004901960784313725, 'mean_word_length': 4.794326241134752, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, '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}}
Variable-length integer codes based on the Goldbach conjecture, and other additive codes

This article introduces a new family of variable-length codes for the integers, initially based on the Goldbach conjecture that every even integer is the sum of two primes. For an even integer we decompose the value into its two constituent primes and encode the ordinal numbers of those primes with an Elias (1975) /spl gamma/ code. The method is then elaborated to handle odd integers. The article then develops a more general method of encoding any integer as the sum of two integers and developing suitable basis sets of integers. Although the codes which are generated by these methods are characterized by widely varying and unpredictable lengths, they are over some ranges shorter than most other variable-length codes.