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 21, 2026 16:31Andrew EpsteinAndrew EpsteinScore: 49,698Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 21, 2026 16:3349,63553,322,87643,679,00002,113,536
2Aug 21, 2026 16:3349,65153,976,91743,693,00002,113,536
3Aug 21, 2026 16:3349,65753,983,75143,699,00002,113,536
4Aug 21, 2026 16:3349,68654,002,24443,724,00002,113,536
5Aug 21, 2026 16:3349,69853,371,99743,735,00002,113,536
6Aug 21, 2026 16:3349,74553,402,10143,776,00002,113,536
7Aug 21, 2026 16:3349,74658,210,09943,777,00002,113,536
8Aug 21, 2026 16:3349,74753,491,85543,778,00002,113,536
9Aug 21, 2026 16:3349,78454,161,20143,810,00002,113,536