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:41Yuriy LyfenkoYuriy LyfenkoScore: 28,513Success
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:4128,10954,608,04123,706,0001,030,0002,527,232
2Feb 23, 2024 03:4128,29953,265,10723,907,000996,0002,396,160
3Feb 23, 2024 03:4128,30551,382,10122,916,0001,992,0002,383,872
4Feb 23, 2024 03:4128,31151,205,81423,918,000996,0002,387,968
5Feb 23, 2024 03:4128,36057,049,40922,961,0001,996,0002,392,064
6Feb 23, 2024 03:4128,36852,706,25422,967,0001,997,0002,527,232
7Feb 23, 2024 03:4128,51355,828,98224,088,0001,003,0002,387,968
8Feb 23, 2024 03:4128,53449,320,59423,102,0002,008,0002,396,160
9Feb 23, 2024 03:4128,60150,584,33923,156,0002,013,0002,523,136
10Feb 23, 2024 03:4128,73164,922,79725,283,66602,236,416
11Feb 23, 2024 03:4129,163102,896,59725,663,31202,232,320
12Feb 23, 2024 03:4129,19189,617,40125,688,12902,228,224