Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,748 members, 7,817,063 topics. Date: Saturday, 04 May 2024 at 02:36 AM

Need Help On Visual Basic. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Need Help On Visual Basic. (809 Views)

Help Needed Urgently On Visual Basic. Experts Please! / programmers Please Help A Friend on visual basic. / Tutorials And Websites To Learn More On Visual Basic (2) (3) (4)

(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)

Please Help Me Review This Android App I Developed For A Group / I Need A PHP Project Now More Than Ever / Fresh Spamming Tools

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 6
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.