Prime Numbers:
"Computer Concepts With Java 2 Essentials" Chapter 6, P6.13.
Applet Source Code