write the test cases on prime number with result?

Answer Posted / md.mosaj gohar

- chech if the number is not a decimal no.
- check if the number is not of the from p/q
- check if the number is not a negative no.
- if the number is a natural number a greater than 6 then,
-if it can be converted to the form 6k-1or
6k+1,then it is prime no.else not.
- for natural nos. less than 6: 2,3 7 5 are prime nos. to
be taken as granted.

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why did you choose the Software Testing Field?

1638


How do you scope out the size of the testing effort?

1912


About Testing

1966


Hi Friends, I wish to start my career in manual Testing as I believe I am ready to face Interviews.I have good domain knowledge in banking(investment and retail) and insurance.To be in the competition I have added three years of testing experience to my CV apart from my domain experience. Can someone please advice some real time tips which can help in facing the interview. Thanks in advance

1632


What are the different ways to check a date field in a website?

668






Testcases for msword( microsoct office word??

1664


How to test the search functionality.For example in naukri advance search is there.how ca i test that page.

1656


what is the difference between Test-bed and test topology?

3264


How to find that tools work well with your existing system?

1596


What exactly is quality control?

722


What is XML Testing? Do we have any tools to test the XML? Please let me know.

1569


What is concurrent user hits in load testing?

824


How should your staff be managed? How about your overtime?

2758


Can anyone write test cases on google account creation page in the testing template format , urgent pls and explain if possible how to execute also

1585


Difference between smoke and sanity testing

1299