Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write VB script to test given number is Prime Number

Answer Posted / apoorva

bresult = False
Num = 907
For i = 2 To Num / 2
If Num Mod i = 0 Then
bresult = True
Exit For
End If

Next
If bresult = True Then
MsgBox "Prime"
Else
MsgBox "Not Prime"
End If

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in a web page hoe to check the dynamic links that rechabging with out using regular expressions

2260


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4953


How did you use regular expressions in QTP and also in WR?

2644


In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2406


What is the Difference between copy to action and call to action?

1130


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

1797


any body can you help me what is the script to automate an comand promt

2493


What are test settings and global settings?

1098


How to analyzing the checpoint results?

1052


What are the steps involved in the recovery scenario wizard?

1018


Is it possible to change the property value at runtime? How it is possible?

1034


How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

1260


what is the advantages and disadvantages of using functions instead of re usable actions

1965


Can the user toggle between using Local OR and shared OR for the same action?

974


if mandatory and Assitive propertys are shows same how will u write skript in QTP window

2081