fixed a logic mistake not caught during the conversion from index to bitmask that caused an error in the number of primes found to be 1 more than the correct amount.
got input validation working, and changed from uint8_t to unsinged char