This code takes a user-inputted number, checks if it is prime by testing for divisibility by all integers from 2 to the number-1, and adds any factors to a list. It then adds the original number to the list. A second command button clears the input text box and list when clicked.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
72 views1 page
Codes
This code takes a user-inputted number, checks if it is prime by testing for divisibility by all integers from 2 to the number-1, and adds any factors to a list. It then adds the original number to the list. A second command button clears the input text box and list when clicked.