FANDOM


This program has you enter a number and will then show you a list of divisors or it will display Prime. You can also do square root of A in the For loop to make the program find the numbers faster, it will just display less integers that it can be divided by.


1→θ
ClrList L1
Input "NUMBER:",A
For(B,3,(A/2),2)
A/B→C
If C=int(C)
Then
C→L1(θ)
1+θθ
End
For(K,3,(A/2),2)
A/K→O
If O=int(O)
Then
O→L1(θ)
1+θθ
End
End
If θ=1
Then
Disp "Prime"
Else
Disp"Divisible By:"
Disp L1

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.