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:02Andrew EpsteinAndrew EpsteinScore: 6,801,525Success
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:056,776,9065,973,737,6455,962,678,0001,000,0002,113,536
2Aug 21, 2026 16:056,780,9555,977,453,7235,965,185,0002,056,0002,113,536
3Aug 21, 2026 16:056,794,5695,989,940,2825,978,212,0001,009,0002,113,536
4Aug 21, 2026 16:056,797,1275,991,670,8165,980,472,0001,000,0002,113,536
5Aug 21, 2026 16:056,801,5255,996,059,5665,984,342,0001,000,0002,113,536
6Aug 21, 2026 16:056,813,0676,006,534,3485,993,497,0002,002,0002,113,536
7Aug 21, 2026 16:056,821,4056,012,750,8286,001,837,0001,000,0002,113,536
8Aug 21, 2026 16:056,824,7386,015,822,3136,004,770,0001,000,0002,113,536
9Aug 21, 2026 16:056,838,0886,028,336,8636,015,459,0002,059,0002,113,536