Hello friends, please dont feel disappointed by my question. Im not too perfect in php. Im battling at writing a prime number program. I did it to this point: if the textbox is empty, it tells the user to input a number. When a number less than 2 is entered, it tells the user to input a higher value. Now my problem is, when i input a greater than 2 number like 4, it still tells me its a prime number. Please help me. Thanks, Golden Waters.