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 23, 2026 21:09Dominique GarmierDominique GarmierScore: 45,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 21:0945,66863,508,13538,179,0002,009,0002,494,464
2Mar 23, 2026 21:0945,66966,082,06739,185,0001,004,0002,281,472
3Mar 23, 2026 21:0945,68263,719,68338,190,0002,010,0002,281,472