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 listMay 19, 2024 08:18Ivan BessonovIvan BessonovScore: 16,498Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:1816,32734,031,04612,316,0002,052,0002,289,664
2May 19, 2024 08:1816,36334,240,44713,371,0001,028,0002,289,664
3May 19, 2024 08:1816,40031,506,27513,402,0001,030,0002,289,664
4May 19, 2024 08:1816,40629,944,94313,406,0001,031,0002,289,664
5May 19, 2024 08:1816,42736,034,64713,424,0001,032,0002,289,664
6May 19, 2024 08:1816,43133,978,25314,459,00002,334,720
7May 19, 2024 08:1816,49830,832,52213,481,0001,037,0002,289,664
8May 19, 2024 08:1817,07340,640,54113,021,0002,003,0002,424,832
9May 19, 2024 08:1817,17841,646,11513,102,0002,015,0002,334,720
10May 19, 2024 08:1817,25563,279,27415,184,20002,322,432
11May 19, 2024 08:1817,54983,022,06915,442,93602,187,264
12May 19, 2024 08:1817,58366,428,05215,473,26902,195,456