next up previous
Next: About this document ... Up: In the Laboratory: Finding Previous: Implementation

Optional Refinement

As we described, public key encryption involves the use of composite numbers as well as prime numbers. A challenging extension to this lab would be to let the user type in a composite number and display its prime factorization. Design a method that takes an integer parameter and displays its prime factors in the TextArea. For example, if the user inputs 40, your method should display 40 = 2*2*2*5.



Ralph Morelli {Faculty}
12/22/1999