MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / solution

Function solution

project_euler/problem_047/sol1.py:101–108  ·  view source on GitHub ↗

Return the first value of the first four consecutive integers to have four distinct prime factors each. >>> solution() 134043

(n: int = 4)

Source from the content-addressed store, hash-verified

99
100
101def solution(n: int = 4) -> int | None:
102 """Return the first value of the first four consecutive integers to have four
103 distinct prime factors each.
104 >>> solution()
105 134043
106 """
107 results = run(n)
108 return results[0] if len(results) else None
109
110
111if __name__ == "__main__":

Callers 1

sol1.pyFile · 0.70

Calls 1

runFunction · 0.70

Tested by

no test coverage detected