Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ sol2.py
File
sol2.py
project_euler/problem_12/sol2.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
def
triangle_number_generator():
2
for
n in range(1,1000000):
3
yield
n*(n+1)//2
4
Callers
nothing calls this directly
Calls
2
triangle_number_generator
Function · 0.85
count_divisors
Function · 0.70
Tested by
no test coverage detected