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 23, 2023 05:57matsuoka-601matsuoka-601Score: 38,353Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 05:5738,16358,750,70531,548,0002,035,0002,400,256
2Jul 23, 2023 05:5738,17497,652,37133,593,50402,207,744
3Jul 23, 2023 05:5738,17555,845,05831,558,0002,036,0002,424,832
4Jul 23, 2023 05:5738,207108,934,44833,622,57502,199,552
5Jul 23, 2023 05:5738,240111,045,40233,651,18302,203,648
6Jul 23, 2023 05:5738,29862,024,18231,660,0002,042,0002,404,352
7Jul 23, 2023 05:5738,35360,911,55832,729,0001,022,0002,424,832
8Jul 23, 2023 05:5738,49758,511,72629,892,0003,985,0002,404,352
9Jul 23, 2023 05:5738,49962,057,96232,883,000996,0002,347,008
10Jul 23, 2023 05:5738,50063,012,88130,891,0002,989,0002,400,256
11Jul 23, 2023 05:5738,56667,729,83630,944,0002,994,0002,404,352
12Jul 23, 2023 05:5738,60763,446,94531,976,0001,998,0002,400,256