hello i am trying to make a program for prime numbers but facing some problem can any one can help me in making this program
akaban -3
Newbie Poster
Recommended Answers
Jump to PostGood example using the Sieve of Eratosthenes algorithm - http://www.codeguru.com/columns/vb/article.php/c6575
Jump to Postyou didn't say what your problem. try this to check whether given number is a Prime Number
Option Explicit Public Function IsPrime(ByVal n As Long) As Boolean Dim I As Long IsPrime = False If n <> 2 And (n And 1) = 0 Then Exit Function …
All 6 Replies
SCBWV 71
Junior Poster
abu taher 34
Practically a Posting Shark
akaban -3
Newbie Poster
WaltP 2,905
Posting Sage w/ dash of thyme Team Colleague
abu taher 34
Practically a Posting Shark
akaban -3
Newbie 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.