₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,998 members, 8,419,863 topics. Date: Thursday, 04 June 2026 at 04:20 AM

Toggle theme

Need Help On Visual Basic. - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingNeed Help On Visual Basic. (880 Views)

1 Reply (Go Down)

Need Help On Visual Basic. by Nobody: 1:54pm On Oct 15, 2014
Hi Everyone, Am Dru by name. I need help on how to write a program that detects if a number is a PRIME NUMBER using Visual-Basic. Please make sure you've debugged successfully before posting any programs. Thanks.
Re: Need Help On Visual Basic. by Capnd143(m): 7:22am On Oct 18, 2014
I dnt do vb, bt this shouldnt be an issue at all, first what are prime numbers? With the definition, u can deduce the following algorithm;

to check whether numbers from an input source say an array name NumBer_s is a prime number you simply say (java example):

for(int n=0;i<NumBer_s.length;i++ )
{for(int i=2;i<NumBer_s[n];i++){
if(NumBer_s[n]%i != 0)
{System.out.println(NumBer_s[n] + "is prime"wink;}
}
use this algo for ur vb solution!
Re: Need Help On Visual Basic. by Nobody: 11:54am On Oct 18, 2014
Maybe a trip to www.homeandlearn.co.uk/NET/vbNet.html might be of help..
Re: Need Help On Visual Basic. by Nobody: 1:13am On Oct 31, 2014
Thanks everyone, just completed it and its working perfectly.Thanks once again.
1 Reply

Help Needed Urgently On Visual Basic. Experts Please!programmers Please Help A Friend on visual basic.Tutorials And Websites To Learn More On Visual Basic234

How to Overcome Trend of Poor Adoption of School Management Software (sms)?Lucrative Project Available For A Game Developer 3DExceptional Performance. Thats What You Get....