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 18, 2023 17:21Bernard TeoBernard TeoScore: 71,335Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 17:1971,152131,402,94862,613,65602,252,800
2Jul 18, 2023 17:2071,163118,119,27762,623,75702,248,704
3Jul 18, 2023 17:1971,213118,726,73462,667,61202,252,800
4Jul 18, 2023 17:1971,286122,428,49962,731,39002,256,896
5Jul 18, 2023 17:2171,314126,580,78162,755,90202,248,704
6Jul 18, 2023 17:2071,319138,173,34362,760,72102,256,896
7Jul 18, 2023 17:2171,335134,843,25862,775,12302,252,800
8Jul 18, 2023 17:2071,347132,694,53662,785,36102,248,704
9Jul 18, 2023 17:2171,485129,905,71962,907,00402,252,800
10Jul 18, 2023 17:2171,592121,491,95663,001,35302,244,608
11Jul 18, 2023 17:2171,753131,203,60563,143,02902,252,800
12Jul 18, 2023 17:2171,819128,723,05463,200,96402,260,992