Determine Even/Odd and Primeness

By | 2019-07-14

This is a simple demonstration of one way to determine if a number is even/odd, or prime/not prime. There is very minimal error checking, and the demo can only handle numbers in the range of a long integer.

It’s a pretty simple program, meant for beginners to get an idea of how to accomplish this. If you have a better or different method, why not make your own post with demo code?

Attachments

FileUploadedSize
389-20190714-110909-evenodd.zip7/14/2019 11:09:09 AM2892
Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.