Flowchart (ISO 5807)
Source code
Python
def factorize(n):
d = 2
while d * d <= n:
while n % d == 0:
print(d)
n //= d
d += 1
if n > 1:
print(n)The editor opens with this code — change it and the chart redraws.
- Language
- Python
- Constructs
- division loop
- Topic
- Algorithms
- Formats
- Word, Visio, draw.io, PDF, SVG