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 00:27Dominique GarmierDominique GarmierScore: 12,408Success
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 00:2712,30526,227,6139,746,0001,082,0002,281,472
2Mar 23, 2026 00:2712,40829,171,1269,927,000992,0002,277,376
3Mar 23, 2026 00:2712,45032,979,3578,964,0001,992,0002,506,752