79393838

Date: 2025-01-28 12:39:36
Score: 1.5
Natty:
Report link

import itertools

Range of numbers (1 to 31)

numbers = range(1, 32)

Generate all combinations of 5 numbers

combinations = list(itertools.combinations(numbers, 5))

Print the total number of combinations

print(f"Total combinations: {len(combinations)}")

Print the first 10 combinations as a sample

for combo in combinations[:130000]: print(combo)

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Masud Alam