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 25, 2026 07:36Dominique GarmierDominique GarmierScore: 12,607Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 25, 2026 07:3612,57027,679,7979,051,0002,011,0002,404,352
2Mar 25, 2026 11:4012,59333,168,86510,075,0001,007,0002,404,352
3Mar 25, 2026 11:4012,60329,833,2979,075,0002,016,0002,277,376
4Mar 25, 2026 07:3612,60727,876,3399,077,0002,017,0002,277,376
5Mar 25, 2026 11:4012,62526,700,0399,090,0002,020,0002,273,280
6Mar 25, 2026 07:3612,63530,963,50610,109,0001,010,0002,510,848