Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: what the code of this Pin
Pete O'Hanlon26-Jan-11 11:49
mvePete O'Hanlon26-Jan-11 11:49 
GeneralRe: what the code of this Pin
PIEBALDconsult26-Jan-11 13:53
mvePIEBALDconsult26-Jan-11 13:53 
GeneralRe: what the code of this Pin
Thomas Krojer26-Jan-11 22:22
Thomas Krojer26-Jan-11 22:22 
GeneralRe: what the code of this Pin
Pete O'Hanlon26-Jan-11 22:45
mvePete O'Hanlon26-Jan-11 22:45 
AnswerRe: what the code of this Pin
Nabawoka26-Jan-11 11:30
Nabawoka26-Jan-11 11:30 
GeneralRe: what the code of this Pin
TheGreatAndPowerfulOz26-Jan-11 11:34
TheGreatAndPowerfulOz26-Jan-11 11:34 
GeneralRe: what the code of this Pin
Nabawoka26-Jan-11 11:36
Nabawoka26-Jan-11 11:36 
GeneralRe: what the code of this Pin
Pete O'Hanlon26-Jan-11 11:47
mvePete O'Hanlon26-Jan-11 11:47 
Look. It's easy.

You have an array. Iterate over the array and check to see if each item is a prime. If it's a prime, increment your prime count and check to see if it's lower than any other primes you've found. At the end of the function, compare the count of primes with the lowest prime value.

There are various optimisations that you can apply, but this is the basic functionality. If you want to have a career that doesn't involve flipping burgers then you need to apply critical thinking to problems. The question gave you all the information that you needed, but you chose to waste your time here rather than breaking the problem down into small steps.

I'm not a stalker, I just know things. Oh by the way, you're out of milk.

Forgive your enemies - it messes with their heads


My blog | My articles | MoXAML PowerToys | Onyx


GeneralRe: what the code of this Pin
fjdiewornncalwe26-Jan-11 15:08
professionalfjdiewornncalwe26-Jan-11 15:08 
Questionusing npgsql Pin
mabrahao26-Jan-11 8:01
mabrahao26-Jan-11 8:01 
QuestionRegEx Question Pin
Kevin Marois26-Jan-11 6:54
professionalKevin Marois26-Jan-11 6:54 
Answerbelongs in RegEx forum Pin
Luc Pattyn26-Jan-11 7:17
sitebuilderLuc Pattyn26-Jan-11 7:17 
AnswerRe: RegEx Question Pin
AspDotNetDev26-Jan-11 7:24
protectorAspDotNetDev26-Jan-11 7:24 
GeneralRe: RegEx Question Pin
Kevin Marois26-Jan-11 8:18
professionalKevin Marois26-Jan-11 8:18 
GeneralRe: RegEx Question Pin
OriginalGriff26-Jan-11 8:20
mveOriginalGriff26-Jan-11 8:20 
GeneralRe: RegEx Question Pin
Kevin Marois26-Jan-11 8:21
professionalKevin Marois26-Jan-11 8:21 
AnswerRe: RegEx Question Pin
TheGreatAndPowerfulOz26-Jan-11 7:33
TheGreatAndPowerfulOz26-Jan-11 7:33 
GeneralRe: RegEx Question Pin
OriginalGriff26-Jan-11 8:25
mveOriginalGriff26-Jan-11 8:25 
GeneralRe: RegEx Question Pin
TheGreatAndPowerfulOz26-Jan-11 8:32
TheGreatAndPowerfulOz26-Jan-11 8:32 
GeneralRe: RegEx Question Pin
AspDotNetDev26-Jan-11 9:31
protectorAspDotNetDev26-Jan-11 9:31 
GeneralRe: RegEx Question Pin
TheGreatAndPowerfulOz26-Jan-11 9:59
TheGreatAndPowerfulOz26-Jan-11 9:59 
GeneralRe: RegEx Question Pin
RobCroll26-Jan-11 12:55
RobCroll26-Jan-11 12:55 
QuestionReserve memory in Collection Pin
hairy_hats26-Jan-11 5:58
hairy_hats26-Jan-11 5:58 
AnswerRe: Reserve memory in Collection Pin
Yusuf26-Jan-11 6:43
Yusuf26-Jan-11 6:43 
AnswerRe: Reserve memory in Collection Pin
Luc Pattyn26-Jan-11 7:23
sitebuilderLuc Pattyn26-Jan-11 7:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.