In this code if we enter the prime numbers like 3,5 or 7 the output is wrong.and if we input 3,11or 17.. output is correct why????
vishal_13 0
Newbie Poster
Recommended Answers
Jump to PostIf you input 3 is the output wrong or right - you say both!
11 and 17 are also prime numbers
All 2 Replies
JamesCherrill 4,733
Most Valuable Poster Team Colleague Featured Poster
rubberman 1,355
Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.