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 listFeb 23, 2024 03:58Yuriy LyfenkoYuriy LyfenkoScore: 28,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 03:5828,14755,830,41224,769,00002,265,088
2Feb 23, 2024 03:5828,28451,025,60224,890,00002,527,232
3Feb 23, 2024 03:5828,30657,695,57522,917,0001,992,0002,265,088
4Feb 23, 2024 03:5828,34459,453,08623,946,000997,0002,387,968
5Feb 23, 2024 03:5828,35551,356,86723,954,000998,0002,265,088
6Feb 23, 2024 03:5828,36355,292,36923,961,000998,0002,396,160
7Feb 23, 2024 03:5828,39055,115,13122,985,0001,998,0002,527,232
8Feb 23, 2024 03:5828,43150,789,85323,018,0002,001,0002,392,064
9Feb 23, 2024 03:5828,45358,106,19223,036,0002,003,0002,527,232
10Feb 23, 2024 03:5828,81288,123,45925,354,42102,232,320
11Feb 23, 2024 03:5829,00595,453,44525,523,97802,236,416
12Feb 23, 2024 03:5829,13298,161,42525,636,42002,236,416