What is the error with my code?

please explain where i am wrong. here is my code

@Anku47 p should be capital in not prime and declare i outside corrected