My assignment is to have a composite number (any number that is not prime) printing program that passes an integer through a bool method. This is the code I have. Could someone tell me why its not working?
edit: the program runs, but the only thing it prints is the cout line "composite numbers between 5 and 155". How can I make the code work to print out all composite numbers between 5 and 155