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 21, 2026 02:37Dominique GarmierDominique GarmierScore: 13,948Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 02:3713,80729,583,70110,125,0002,025,0002,404,352
2Mar 21, 2026 02:3713,94836,927,47211,252,0001,022,0002,273,280
3Mar 21, 2026 02:3714,11030,086,98311,383,0001,034,0002,400,256