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 26, 2026 12:24Dominique GarmierDominique GarmierScore: 34,394Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 26, 2026 12:2434,22751,484,32929,116,0001,004,0002,355,200
2Mar 25, 2026 21:5234,36156,667,51730,238,00002,351,104
3Mar 25, 2026 21:5234,38453,046,30130,258,00002,351,104
4Mar 26, 2026 12:2434,39453,675,56430,267,00002,347,008
5Mar 26, 2026 12:2434,41955,440,41530,289,00002,277,376
6Mar 25, 2026 21:5234,54549,406,16330,400,00002,277,376