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 listJul 8, 2021 17:09Yuriy LyfenkoYuriy LyfenkoScore: 38,973Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2021 17:0930,888102,425,97227,181,15702,211,840
2Jul 8, 2021 17:0930,99398,129,05627,274,22402,228,224
3Jul 8, 2021 17:0931,00387,848,63427,282,45402,215,936
4Jul 8, 2021 17:0938,93059,496,71232,243,0002,015,0002,478,080
5Jul 8, 2021 17:0938,93559,792,07034,263,00002,269,184
6Jul 8, 2021 17:0938,95361,008,88434,279,00002,494,464
7Jul 8, 2021 17:0938,97361,713,99834,296,00002,269,184
8Jul 8, 2021 17:0938,98559,303,23133,298,0001,009,0002,375,680
9Jul 8, 2021 17:0938,99356,800,14833,305,0001,009,0002,269,184
10Jul 8, 2021 17:0939,05756,800,74134,370,00002,383,872
11Jul 8, 2021 17:0939,06562,244,22533,366,0001,011,0002,269,184
12Jul 8, 2021 17:0939,29064,253,43634,575,00002,269,184