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:02Yuriy LyfenkoYuriy LyfenkoScore: 37,168Success
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:0235,50473,669,64331,243,82902,220,032
2Jun 27, 2021 16:0235,534106,668,87231,269,61102,211,840
3Jun 27, 2021 16:0235,60096,385,15931,327,97502,224,128
4Jun 27, 2021 16:0237,07755,663,98931,609,0001,019,0002,269,184
5Jun 27, 2021 16:0237,09053,166,51332,639,00002,375,680
6Jun 27, 2021 16:0237,13558,967,47231,658,0001,021,0002,375,680
7Jun 27, 2021 16:0237,16858,916,69231,686,0001,022,0002,269,184
8Jun 27, 2021 16:0237,18462,808,92232,722,00002,375,680
9Jun 27, 2021 16:0237,18958,578,75332,726,00002,269,184
10Jun 27, 2021 16:0237,29457,364,16732,819,00002,379,776
11Jun 27, 2021 16:0237,36861,881,99531,888,000996,0002,269,184
12Jun 27, 2021 16:0237,44958,988,86230,958,0001,997,0002,269,184