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 25, 2023 20:30gchebanovgchebanovScore: 34,151Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:3034,06196,125,46729,973,58002,215,936
2Jul 25, 2023 20:3034,06752,569,65927,981,0001,998,0002,379,776
3Jul 25, 2023 20:3034,07658,096,05227,988,0001,999,0002,367,488
4Jul 25, 2023 20:3034,07793,131,17729,987,40802,215,936
5Jul 25, 2023 20:3034,08394,266,73429,993,35202,220,032
6Jul 25, 2023 20:3034,14861,483,79827,045,0003,005,0002,363,392
7Jul 25, 2023 20:3034,15151,298,75227,048,0003,005,0002,473,984
8Jul 25, 2023 20:3034,21153,794,72128,030,0002,076,0002,367,488
9Jul 25, 2023 20:3034,24752,957,56728,128,0002,009,0002,289,664
10Jul 25, 2023 20:3034,25655,812,75028,136,0002,009,0002,371,584
11Jul 25, 2023 20:3034,28152,738,90428,156,0002,011,0002,289,664
12Jul 25, 2023 20:3034,37557,499,31927,225,0003,025,0002,359,296