# Project Euler Problem 3, solution internals using python debugger

```\$python -m pdb euler-three.py
> /home/jeffrin/beautifulwork/lib/euler-three.py(7)()
-> '''
(Pdb) r
6857
--Return--
> /home/jeffrin/beautifulwork/lib/euler-three.py(17)()->None
-> print n
(Pdb) next
--Return--
> (1)()->None
(Pdb) next
The program finished and will be restarted
> /home/jeffrin/beautifulwork/lib/euler-three.py(7)()
-> '''
(Pdb) next
> /home/jeffrin/beautifulwork/lib/euler-three.py(9)()
-> n = 600851475143
(Pdb) next
> /home/jeffrin/beautifulwork/lib/euler-three.py(11)()
-> i = 2
(Pdb) next
> /home/jeffrin/beautifulwork/lib/euler-three.py(12)()
-> while i * i  /home/jeffrin/beautifulwork/lib/euler-three.py(13)()
-> while n % i == 0:
(Pdb) print n
600851475143
(Pdb) print n % i
1
(Pdb) next
> /home/jeffrin/beautifulwork/lib/euler-three.py(15)()
-> i = i + 1
(Pdb) print i
2
(Pdb) next
> /home/jeffrin/beautifulwork/lib/euler-three.py(12)()
-> while i * i  /home/jeffrin/beautifulwork/lib/euler-three.py(13)()
-> while n % i == 0:
(Pdb) print n % i
2
(Pdb) next
> /home/jeffrin/beautifulwork/lib/euler-three.py(15)()
-> i = i + 1
(Pdb) continue
6857
The program finished and will be restarted
> /home/jeffrin/beautifulwork/lib/euler-three.py(7)()
-> '''
(Pdb)

```