Link to home
Start Free TrialLog in
Avatar of santhosh d
santhosh d

asked on

find prime number or not in asp classic

<%
 
        Dim number,i
            number= 7
                if number mod 2 <> 0 Then
             For i = 1 To 10
            Next
            
            end if
             
            If number mod i = 1 Then
             response.write number &"is  a  prime number"    
Else
            response.write number &"Number is not  Prime"                   
            End If
         
        %>
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Proposed solution answered the question.