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 26, 2026 04:10Charles CabergsCharles CabergsScore: 23,080Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:1022,94638,106,69219,184,0001,009,0002,318,336
2Apr 26, 2026 04:1023,05339,787,35418,259,0002,028,0002,396,160
3Apr 26, 2026 04:1023,05432,951,53519,274,0001,014,0002,334,720
4Apr 26, 2026 04:1023,06338,449,92518,267,0002,029,0002,338,816
5Apr 26, 2026 04:1023,08036,114,15717,265,0003,046,0002,428,928
6Apr 26, 2026 04:1023,12237,852,42719,331,0001,017,0002,322,432
7Apr 26, 2026 04:1023,14741,585,02518,333,0002,037,0002,330,624
8Apr 26, 2026 04:1023,21943,311,00720,433,00002,506,752
9Apr 26, 2026 04:1023,22541,425,47218,395,0002,043,0002,342,912