# Odd, Even, or Prime

**URL:** https://forum.kirupa.com/t/odd-even-or-prime/273249
**Category:** flash
**Created:** [October 13, 2008, 5:12pm UTC](https://forum.kirupa.com/t/odd-even-or-prime/273249 "2008-10-13T17:12:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Rosey500](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@Rosey500](https://forum.kirupa.com/u/Rosey500)
#### Post date: [October 13, 2008, 5:12pm UTC](https://forum.kirupa.com/t/odd-even-or-prime/273249/1 "2008-10-13T17:12:50Z")

</div>

Pardon me if this posts twice!

I am building a site, very simple, which tells a user whether a number is odd or even. Problem is that inputting is via a textField, and Flash needs to convert the String into a Number, then perform an operation such as "if ‘userinput’/2 is an integer, trace “even”, else trace “odd.” Also, is there a utility that would check prime numbers too?

Thanks all,  
Rosey500
