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 14:46Dominique GarmierDominique GarmierScore: 74,025Success
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 14:4673,95688,072,41063,079,0002,002,0002,535,424
2Mar 23, 2026 14:4674,02588,079,70763,138,0002,004,0002,334,720
3Mar 23, 2026 14:4674,11089,824,27263,211,0002,006,0002,293,760