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 listApr 28, 2026 13:59Dominique GarmierDominique GarmierScore: 10,255Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 14:0010,14826,440,6516,947,0001,984,0002,367,488
2Apr 28, 2026 14:0010,15723,384,6916,953,0001,986,0002,371,584
3Apr 28, 2026 14:0010,21426,866,1096,992,0001,997,0002,371,584
4Apr 28, 2026 14:0010,21427,906,9936,992,0001,997,0002,375,680
5Apr 28, 2026 14:0010,25525,566,6217,020,0002,005,0002,441,216
6Apr 28, 2026 14:0010,32025,392,7617,064,0002,018,0002,363,392
7Apr 28, 2026 14:0010,35325,074,1236,074,0003,037,0002,433,024
8Apr 28, 2026 14:0010,37122,904,5457,099,0002,028,0002,375,680
9Apr 28, 2026 14:0010,37230,079,2907,100,0002,028,0002,371,584