Hi I need prime factorization program for Casio FC-200. I found this on internet:
Lbl 0:"N="?➝A:Goto 2: Lbl 1:2◢ A÷2➝A:A=1⇒Goto 7: Lbl 2:MOD(A,2)=0⇒Goto 1:3➝B: Lbl 3:√A+1➝C: Lbl_4:B≥C⇒Goto 6: MOD(A,B)=0⇒Goto 5: B+2➝B:Goto 4: Lbl 5:B◢ A÷B➝A:Goto 3: Lbl 6:A◢ Lbl 7:"END":Goto 0
But i don't have ≥ and MOD function.
I replaced the MOD function using this pattern: MOD(A, B ) = A - B*Int(A/B), but i don't know how i should repleace ≥ into two separate conditional statements (>, =).
Program also have to contain less than 128 steps because that's the maximum capacity of my calculator.
Edited by Filip12678, 18 April 2022 - 08:01 AM.