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:11Yuriy LyfenkoYuriy LyfenkoScore: 28,273Success
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:1127,84448,047,02924,503,00002,387,968
2Feb 23, 2024 03:1127,96947,112,02823,588,0001,025,0002,527,232
3Feb 23, 2024 03:1128,02652,874,50223,636,0001,027,0002,392,064
4Feb 23, 2024 03:1128,10350,250,87423,701,0001,030,0002,527,232
5Feb 23, 2024 03:1128,12352,820,94024,748,00002,527,232
6Feb 23, 2024 03:1128,12454,686,80323,718,0001,031,0002,392,064
7Feb 23, 2024 03:1128,27351,454,06623,885,000995,0002,379,776
8Feb 23, 2024 03:1128,28851,626,86722,902,0001,991,0002,527,232
9Feb 23, 2024 03:1128,31556,001,34123,921,000996,0002,387,968
10Feb 23, 2024 03:1128,92495,702,81325,452,68502,232,320
11Feb 23, 2024 03:1128,942106,596,04425,468,82402,236,416
12Feb 23, 2024 03:1129,36198,547,00625,837,44402,236,416