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 24, 2023 14:52gchebanovgchebanovScore: 35,118Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 14:5234,84161,976,54428,616,0002,044,0002,371,584
2Jul 24, 2023 14:5234,87056,220,43829,664,0001,022,0002,322,432
3Jul 24, 2023 14:5234,88856,519,55729,678,0001,023,0002,326,528
4Jul 24, 2023 14:5234,91068,114,38528,673,0002,048,0002,314,240
5Jul 24, 2023 14:5235,00253,141,10727,822,0002,980,0002,490,368
6Jul 24, 2023 14:5235,11556,223,44526,914,0003,987,0002,326,528
7Jul 24, 2023 14:5235,11859,385,23029,908,000996,0002,486,272
8Jul 24, 2023 14:5235,15859,728,51028,943,0001,996,0002,482,176
9Jul 24, 2023 14:5235,18854,401,30728,968,0001,997,0002,322,432
10Jul 24, 2023 14:5236,36994,909,33632,004,40802,301,952
11Jul 24, 2023 14:5236,46485,613,20532,088,49002,301,952
12Jul 24, 2023 14:5236,46996,306,69832,092,29002,306,048