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 listJul 2, 2026 21:42A_ShamanA_ShamanScore: 78,397Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 21:4477,93978,060,47667,458,0001,129,0002,113,536
2Jul 2, 2026 21:4478,17378,255,34367,560,0001,233,0002,113,536
3Jul 2, 2026 21:4478,21578,653,93667,582,0001,248,0002,113,536
4Jul 2, 2026 21:4478,26980,184,96867,636,0001,241,0002,113,536
5Jul 2, 2026 21:4478,39778,429,03567,776,0001,214,0002,113,536
6Jul 2, 2026 21:4478,43278,427,00867,779,0001,242,0002,113,536
7Jul 2, 2026 21:4478,52578,966,06667,841,0001,261,0002,113,536
8Jul 2, 2026 21:4478,75483,033,58068,043,0001,261,0002,113,536
9Jul 2, 2026 21:4478,76878,776,61768,066,0001,250,0002,113,536