We help IT Professionals succeed at work.

find prime number or not in asp classic

santhosh d
santhosh d asked
on
150 Views
Last Modified: 2017-04-22
<%
 
        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
         
        %>
Comment
Watch Question

CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT

Commented:
Proposed solution answered the question.