Jump to content



Photo
- - - - -

A fast prime factorizing program for Casio fx-5800P

fx-5800P

  • Please log in to reply
2 replies to this topic

#1 secutor

secutor

    Newbie

  • Members
  • Pip
  • 3 posts
  • Gender:Male

  • Calculators:
    CASIO fx-CG20
    CASIO fx-CG50
    CASIO fx-9750GII
    CASIO fx-5800P
    CASIO fx-991EX

Posted 20 June 2018 - 10:59 AM

"PRIME FACTORS"
{0}→List X:1→I
 "N"?→N
While Frac(N÷2)=0
N÷2→N
2→List X[I]
Isz I
WhileEnd
While Frac(N÷3)=0
N÷3→N
3→List X[I]

Isz I

WhileEnd

5→F

While F√(N)

While Frac(N÷F)=0

N÷F→N

F→List X[I]

Isz I

WhileEnd

F+2→F

While Frac(N÷F)=0

N÷F→N

F→List X[I]

Isz I

WhileEnd

F+4→F

WhileEnd

N≠1=>N→List X[I]

If N=1

Then I-1→I

IfEnd

Cls

For 1→J To I

List X[J]

Next

If I=1

Then "           PRIME"

Else

"SEE MODE 3:SD"

IfEnd

 

-------------------------------------

 

Example:

N = 6666666667

 

19

1627

215659

The result will also be available in MODE 3:SD

 

Takes about 25 s

 

---------------------------------------

 

N=215659

 

215659

PRIME


Edited by secutor, 20 June 2018 - 11:06 AM.


#2 sentaro21

sentaro21

    Casio Addict

  • Members
  • PipPipPip
  • 99 posts
  • Gender:Male
  • Location:JAPAN

  • Calculators:
    FX-603P fx-4800P fx-5800P
    CFX-9850GC PLUS
    fx-9860G
    fx-9860GII
    fx-9860GII-2
    fx-9860GII-2 SD
    fx-CG10
    fx-CG20
    fx-CG50
    HP-Prime
    HP 50G
    TI-Nspire CX CAS
    TI-84+CE

Posted 21 June 2018 - 08:13 AM

Hi,
The transfer course of the program,
copy your text program to CcEditor(few corrections)-> CcLinker -> fx-5800P
and run program,
This is the fastest by prime factorizing program of fx-5800P which I have used before. :D
 
Thanks!!


#3 secutor

secutor

    Newbie

  • Members
  • Pip
  • 3 posts
  • Gender:Male

  • Calculators:
    CASIO fx-CG20
    CASIO fx-CG50
    CASIO fx-9750GII
    CASIO fx-5800P
    CASIO fx-991EX

Posted 21 June 2018 - 03:06 PM

 

Hi,
The transfer course of the program,
copy your text program to CcEditor(few corrections)-> CcLinker -> fx-5800P
and run program,
This is the fastest by prime factorizing program of fx-5800P which I have used before. :D
 
Thanks!!

 

Hope that the CCLinker

 

Thank you for telling about the CcLinker dongle, that's exciting news. I will contact Takumako, hopefully it will be possible for him to send to Europe.


Edited by secutor, 21 June 2018 - 03:07 PM.






Also tagged with one or more of these keywords: fx-5800P

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users