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 listMar 20, 2026 18:43olliecrowolliecrowScore: 20,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 18:4019,98939,495,17616,556,0001,034,0002,437,120
2Mar 20, 2026 18:4020,02733,193,76616,588,0001,036,0002,461,696
3Mar 20, 2026 18:4020,04039,450,08717,635,00002,400,256
4Mar 20, 2026 18:4320,06031,121,23617,653,00002,453,504
5Mar 20, 2026 18:4320,13251,369,56316,674,0001,042,0002,457,600
6Mar 20, 2026 18:4320,14842,978,02917,730,00002,457,600