
the more i try the more i mess up this hellava simple program... decomposing a number into prime factors.


this is my code as is (if you see any bugs please tell me what to correct

ClrText

"INSERT NUMBER" ?->A

Do

While Frac (A/B)=0

B

A/B->A

WhileEnd

If B=2

Then 3->B

Else B+2->B

IfEnd

LpWhile B<A

"END"
thanks!
