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 20, 2026 19:22Josu San MartinJosu San MartinScore: 11,471Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 19:2511,34220,071,2209,981,00002,142,208
2May 20, 2026 19:2511,36421,222,92310,001,00002,138,112
3May 20, 2026 19:2511,44420,437,4329,025,0001,046,0002,142,208
4May 20, 2026 19:2511,44520,013,1509,035,0001,037,0002,138,112
5May 20, 2026 19:2511,47119,303,5858,984,0001,111,0002,142,208
6May 20, 2026 19:2511,55221,627,4269,129,0001,037,0002,142,208
7May 20, 2026 19:2511,55721,151,5779,066,0001,105,0002,142,208
8May 20, 2026 19:2511,67720,685,4239,233,0001,043,0002,142,208
9May 20, 2026 19:2511,72219,859,0379,282,0001,034,0002,142,208