Hi grupiyati, try pasting your code to one of paste sites, dpaste.com or pastebin.com. I've added your code to dpaste.com http://dpaste.com/543243/
This will help with pointing out line numbers and show indentations correctly.
There's two mistakes in your code, one at line 12 and one at line 15,16. There's a bunch of coding style issues, that's not functional, but will make your code a lot prettier and easier to understand.
Let's go over the mistake first.
At line 12, range expects an integer for the start and end value, math.sqrt returns a float, so that's a compiler syntax error. You can cast the math.sqrt value to an int, by doing int(math.sqrt(ifprime)), but that'll just truncate the value. If math.sqrt(ifprime) return 4.6, int(math.sqrt(ifprime)) would return 4. Note, it truncates, not rounding. Hint, you'll need to do more here to fudge the number, make sure you're generating a number greater than math.sqrt(ifprime).
At line 15,16: this is your real error. Think about what happens once you found a number that is not prime, do you stop or do you continue with your 'for' loop. You actually continue with your loop. Not only that, the next iteration can potentially set Prime to True again. You can fix it in two ways, 1. stop the loop once you found out the number is not prime using a 'break' statement. or 2. don't allow the variable 'Prime' to be set to True once it has been determine that a number is prime.
Note: your counter is off, since you're not accounting for the number 2, and 3. I'm assuming you just want the base code running. So I'm not correcting you on these.
Now for style errors:
line 7to11. You're really just trying to determine if the number is odd or even, not whether it's prime or not. So you should really use a different variable name. For example, isOdd or isEven.
line 17 to 20, a 'if' statement can contain multiple statement inside it. You don't need to have both line 17 and line 19, since the check is the same. Note line 11 needs to be in a separate 'if' statement because you are actually changing the variable 'Prime' inside of the 'if'.
line 17 to 20 can be recode to be:
if Prime==True:
count=count+1
print ifprime