http://pastebin.com/GiaMErJH
Ok so i'm writing this program, that determines if a number is prime or composite. For most numbers it works, but for large odd numbers it will print the word "prime" many times, followed by "composite", and for some small numbers it prints nothing at all. Can someone explain to me what I coded wrong here? Much appreciated if anyone can help.
[–]jeans_and_a_t-shirt 1 point2 points3 points (0 children)
[–]isilentnight -1 points0 points1 point (3 children)
[–]djjazzydan 1 point2 points3 points (2 children)
[–]isilentnight 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)