Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJun 19, 2021 21:01alex3dalex3dError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 13:48M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 14:03013,345,6011,089,0001,116,0002,121,728expected "6442459076 ", got "6442458438 "
2May 17, 2026 14:03011,683,2941,090,0001,126,0002,121,728expected "6442459076 ", got "6442458438 "
3May 17, 2026 14:03013,549,2131,117,0001,100,0002,121,728expected "6442459076 ", got "6442458438 "
4Jun 19, 2021 21:0131,77851,693,84226,967,000998,0002,523,136
5Jun 19, 2021 21:0131,80850,848,76725,992,0001,999,0002,289,664
6Jun 19, 2021 21:0131,82350,989,89026,004,0002,000,0002,523,136
7Jun 19, 2021 21:0131,83353,203,24327,013,0001,000,0002,289,664
8Jun 19, 2021 21:0131,89749,413,97927,067,0001,002,0002,289,664
9Jun 19, 2021 21:0131,90650,408,69826,072,0002,005,0002,269,184
10Jun 19, 2021 21:0131,90654,565,30027,075,0001,002,0002,527,232
11Jun 19, 2021 21:0131,91051,731,59928,081,00002,289,664
12Jun 19, 2021 21:0131,94250,189,75227,106,0001,003,0002,523,136
13Jun 19, 2021 21:0132,333100,473,49128,452,77002,248,704
14Jun 19, 2021 21:0132,528109,189,45328,624,75202,244,608
15Jun 19, 2021 21:0132,64498,690,62328,726,41702,240,512