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 listAug 1, 2026 03:22Warren FuWarren FuScore: 73,927Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2026 03:2473,77175,073,50263,907,0001,012,0002,113,536
2Aug 1, 2026 03:2473,78875,487,20463,922,0001,012,0002,113,536
3Aug 1, 2026 03:2473,79275,495,04263,927,0001,010,0002,113,536
4Aug 1, 2026 03:2473,83775,585,26463,962,0001,015,0002,113,536
5Aug 1, 2026 03:2473,92775,008,63364,045,0001,011,0002,113,536
6Aug 1, 2026 03:2473,95074,931,87064,063,0001,013,0002,113,536
7Aug 1, 2026 03:2473,96875,719,32564,081,0001,011,0002,113,536
8Aug 1, 2026 03:2474,03075,764,16664,132,0001,015,0002,113,536
9Aug 1, 2026 03:2474,11775,818,72164,208,0001,015,0002,113,536