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 listNov 4, 2025 14:16Mikhail ShirokovMikhail ShirokovScore: 830,624Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 4, 2025 14:16826,300755,303,060727,144,00002,277,376
2Nov 4, 2025 14:18826,670753,738,339725,472,0001,998,0002,277,376
3Nov 4, 2025 14:18828,098754,098,008726,727,0001,999,0002,277,376
4Nov 4, 2025 14:18830,624752,625,550728,950,0001,999,0002,265,088
5Nov 4, 2025 14:16834,127756,260,698733,032,0001,000,0002,392,064
6Nov 4, 2025 14:16834,920764,553,498732,731,0001,999,0002,265,088