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 30, 2026 01:08olliecrowolliecrowScore: 19,677Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 01:1019,30233,976,27213,989,0002,997,0002,510,848
2Apr 30, 2026 01:1019,32824,995,09915,008,0002,001,0002,359,296
3Apr 30, 2026 01:1019,43425,205,27914,084,0003,018,0002,375,680
4Apr 30, 2026 01:1019,44325,235,50215,097,0002,013,0002,375,680
5Apr 30, 2026 01:1019,67725,297,60515,279,0002,037,0002,363,392
6Apr 30, 2026 01:1019,71925,288,33314,291,0003,062,0002,375,680
7Apr 30, 2026 01:1019,76825,362,19215,350,0002,046,0002,375,680
8Apr 30, 2026 01:1019,79825,278,39215,374,0002,049,0002,359,296
9Apr 30, 2026 01:1019,88125,290,19615,438,0002,058,0002,375,680