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 28, 2026 08:52Dominique GarmierDominique GarmierScore: 11,085Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 28, 2026 08:5211,05526,993,1669,728,00002,519,040
2Mar 28, 2026 08:5211,08527,606,5479,755,00002,478,080
3Mar 28, 2026 08:5211,12326,220,3879,788,00002,510,848