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 17, 2024 20:29zielajzielajScore: 4,956Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2024 20:294,87321,863,6554,288,00002,269,184
2Dec 17, 2024 02:164,88221,689,1893,222,0001,074,0002,510,848
3Dec 17, 2024 02:164,89821,531,5174,310,00002,531,328
4Dec 17, 2024 02:164,91519,832,9053,244,0001,081,0002,510,848
5Dec 17, 2024 20:294,92024,698,0324,330,00002,531,328
6Dec 17, 2024 20:294,92423,171,0004,333,00002,531,328
7Dec 17, 2024 02:164,93024,539,7614,338,00002,531,328
8Dec 17, 2024 20:294,93224,191,0984,340,00002,531,328
9Dec 17, 2024 02:164,93925,471,5424,346,00002,269,184
10Dec 17, 2024 20:294,95618,307,5864,361,00002,531,328
11Dec 17, 2024 20:294,96317,550,3714,367,00002,531,328
12Dec 17, 2024 20:294,96426,782,2294,368,00002,531,328
13Dec 17, 2024 02:164,97418,447,6704,377,00002,510,848
14Dec 17, 2024 02:165,03420,913,3694,430,00002,510,848
15Dec 17, 2024 02:165,07417,327,8723,349,0001,116,0002,531,328
16Dec 17, 2024 02:165,08017,961,2123,353,0001,117,0002,355,200
17Dec 17, 2024 20:295,08420,055,0814,474,00002,519,040
18Dec 17, 2024 20:295,11620,754,8404,502,00002,523,136