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 25, 2026 17:56olliecrowolliecrowScore: 13,679Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 17:5713,52529,077,3149,919,0001,983,0002,338,816
2Apr 25, 2026 17:5713,58833,059,43510,871,0001,087,0002,326,528
3Apr 25, 2026 17:5713,64328,147,30410,005,0002,001,0002,326,528
4Apr 25, 2026 17:5713,66725,390,92010,023,0002,004,0002,330,624
5Apr 25, 2026 17:5713,67925,975,00310,032,0002,006,0002,338,816
6Apr 25, 2026 17:5713,68529,144,95910,036,0002,007,0002,412,544
7Apr 25, 2026 17:5714,60129,937,06910,873,0001,976,0002,318,336
8Apr 25, 2026 17:5714,76028,992,10110,991,0001,998,0002,330,624
9Apr 25, 2026 17:5715,07234,914,36211,224,0002,040,0002,338,816