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 24, 2026 16:52olliecrowolliecrowScore: 13,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 16:5313,25425,308,40810,604,0001,060,0002,334,720
2Apr 24, 2026 16:5313,25624,047,30510,606,0001,060,0002,318,336
3Apr 24, 2026 16:5313,30332,942,13210,643,0001,064,0002,326,528
4Apr 24, 2026 16:5313,32027,810,52510,657,0001,065,0002,326,528
5Apr 24, 2026 16:5313,34432,727,40310,676,0001,067,0002,326,528
6Apr 24, 2026 16:5313,41228,988,0619,836,0001,967,0002,318,336
7Apr 24, 2026 16:5313,71228,244,03510,056,0002,011,0002,330,624
8Apr 24, 2026 16:5314,33428,686,54111,563,0001,051,0002,314,240
9Apr 24, 2026 16:5315,33428,227,07812,456,0001,038,0002,338,816