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 listDec 29, 2022 02:57Yuriy LyfenkoYuriy LyfenkoScore: 28,295Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 29, 2022 02:5728,10748,833,72524,734,00002,387,968
2Dec 29, 2022 02:5728,11351,005,01424,739,00002,265,088
3Dec 29, 2022 02:5728,12350,836,94423,717,0001,031,0002,527,232
4Dec 29, 2022 02:5728,28054,952,17523,891,000995,0002,527,232
5Dec 29, 2022 02:5728,29051,098,75924,895,00002,265,088
6Dec 29, 2022 02:5728,29151,018,53724,896,00002,387,968
7Dec 29, 2022 02:5728,29551,351,72223,904,000996,0002,527,232
8Dec 29, 2022 02:5728,29750,291,07923,905,000996,0002,379,776
9Dec 29, 2022 02:5728,30046,898,66423,908,000996,0002,392,064
10Dec 29, 2022 02:5729,58887,893,70926,037,19002,232,320
11Dec 29, 2022 02:5729,59298,362,59726,041,10102,232,320
12Dec 29, 2022 02:5729,60687,837,07626,053,00602,228,224