Generates captcha based on user input.
Truth table implementation and numeric conversions of given numbers