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 16:53Yuriy LyfenkoYuriy LyfenkoScore: 36,638Success
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 16:5333,148102,250,16129,170,58002,224,128
2Jun 27, 2021 16:5333,187108,229,93229,204,84802,211,840
3Jun 27, 2021 16:5333,326101,532,24429,326,74302,215,936
4Jun 27, 2021 16:5336,40059,769,24530,030,0002,002,0002,371,584
5Jun 27, 2021 16:5336,43356,375,13030,058,0002,003,0002,269,184
6Jun 27, 2021 16:5336,53659,715,30831,148,0001,004,0002,269,184
7Jun 27, 2021 16:5336,63862,778,12130,226,0002,015,0002,379,776
8Jun 27, 2021 16:5336,64459,357,26230,232,0002,015,0002,363,392
9Jun 27, 2021 16:5336,66154,600,08332,262,00002,375,680
10Jun 27, 2021 16:5336,69960,691,97431,286,0001,009,0002,371,584
11Jun 27, 2021 16:5336,71754,865,91032,311,00002,269,184
12Jun 27, 2021 16:5336,75057,975,05031,330,0001,010,0002,269,184