|
The question is to find the 1000th prime number. I wrote the following python code for this. The problem is, I get the right answer for the 10th , 20th prime but after that each increment of 10 leaves me one off the mark. I can't catch the bug here :(...
Started by gsin on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
However, when you find a prime (candidate%x =....
It looks like you're trying to say "for each number between 2 and my candidate, check to see if the candidate is evenly divisible by that number" .
I don't think this is testing what you think it's testing .
|
|
James
http://www.facebook.com/groups/berksmk1golfs/
Next Berks mk1 meet - 16th May
Dubs at the Park, Bracknell - 20th May
Started by James W on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at com):
|
|
It's here!
The 'Ring Tour 2012
Club GTI 10th Anniversary
*** Thursday 16th - Monday 20th August ***
The tenth-consecutive running of the Summer trip, now-legendary in it's own lunch time!!
Time to drive and socialise at the best pubilc toll road in the...
Started by Deako on
, 25 posts
by 9 people.
Answer Snippets (Read the full thread at com):
|
Ask your Facebook Friends
|
Presents
CONTEST 5
DAY 5 - MAY 20th
POST YOUR MAY 20th PICK IN THIS THREAD
FOR CONTEST DETAILS CHECK HERE
***
Started by Jay Trotter on
, 15 posts
by 13 people.
Answer Snippets (Read the full thread at paceadvantage):
Tramici bay/Sir Flanagan
BEL R2: #1 Summer Breezing
CD R9: #6 Rogue Romance May 20th Plays
Canterbury.
|
|
CONTEST 4
DAY 30 - APRIL 20th
ENTER YOUR APRIL 20th
2 DAYS
None
Started by Jay Trotter on
, 14 posts
by 11 people.
Answer Snippets (Read the full thread at paceadvantage):
TODAY'S STAKES RACES
None Scheduled
Next Up
April 21st - Keenland - Lexington
***
IMPORTANT TO REMEMBER
PLAYER'S MUST PLAY 10 OF THE 15 LISTED STAKES RACES
TO QUALIFY FOR CONTEST PRIZES
ONLY 1 MANDATORY DERBY PREP RACES REMAIN
*** Tam R9
$15 Ex 6-4
$1... .
|
|
FIR 20th February 20th February 20th February 20th February 20th February 20th February
Started by Abrar on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at mydesi):
|
|
Chidiya Ghar 20th February 20th February 20th February 20th February 20th February 20th February
Started by Abrar on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at mydesi):
|
|
20th February 20th February 20th February
20th February 20th February 20th February
Started by Abrar on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at mydesi):
|
|
April 20th
De Barra's,
Clonakilty
Started by posted by humphrey on
, 16 posts
by 10 people.
Answer Snippets (Read the full thread at frankandwalters):
Will be a first for me in deBarras so only right that... .
I'm ganning, when and where can I get the tickets from? I'm booking my flights from Newcastle this week so I want to make sure I have got tickets first who,s up for this one, im well up for this one. .
|
|
April 20th is TomServo's birthday AND Appreciation Day!
Happy Birthday Tom! *hugs* I sure hope you have a great birthday!!
Started by maryanimal on
, 20 posts
by 16 people.
Answer Snippets (Read the full thread at burningman):
Happy Birthday Tom and a Happy 420 to you and everyone else Happy... .
Happy birthday Htom Sirveaux Happy Bitrhday! Hey there, welcome to 4/20! Thank you! Gonna be 39 in 2.5 hours!
fuck it! I'm going backwards this year! happy birthday, TS!!!!
well, tomorrow .
|