Need Help in PHP

mv10

Recruit
I am new to PHP. I would like to print Prime Nos. between two nos. get from a user, by using PHP. I have written the code but it doesn't work. Is anyone have solution.
 
The key to programming is going step by step.

Take a base case of 1 number. If it is prime, print. Similarly take 2, 3....N. You'll fix your bug that way. Bet you learnt it the same way in C so PHP should be way easier.
 
Back
Top