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 27, 2021 04:23Yuriy LyfenkoYuriy LyfenkoScore: 44,289Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 04:2341,663104,284,24536,663,51602,220,032
2Jun 27, 2021 04:2341,732101,357,15136,724,33502,228,224
3Jun 27, 2021 04:2341,78989,772,19436,774,71802,220,032
4Jun 27, 2021 04:2344,18670,523,29536,890,0001,994,0002,375,680
5Jun 27, 2021 04:2344,19866,510,31937,897,000997,0002,269,184
6Jun 27, 2021 04:2344,20366,958,03737,902,000997,0002,375,680
7Jun 27, 2021 04:2344,28962,180,68037,975,000999,0002,494,464
8Jun 27, 2021 04:2344,31059,040,80936,994,0001,999,0002,269,184
9Jun 27, 2021 04:2344,32468,713,70137,005,0002,000,0002,269,184
10Jun 27, 2021 04:2344,35365,154,16138,031,0001,000,0002,269,184
11Jun 27, 2021 04:2344,35964,621,27237,035,0002,001,0002,371,584
12Jun 27, 2021 04:2344,40967,363,94037,076,0002,004,0002,383,872