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 17:56Andrew EpsteinAndrew EpsteinScore: 10,475Success
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 17:5910,45218,794,9979,198,00002,117,632
2Aug 21, 2026 17:5910,45418,733,2699,200,00002,117,632
3Aug 21, 2026 17:5910,46318,895,8099,208,00002,117,632
4Aug 21, 2026 17:5910,47018,775,2189,214,00002,117,632
5Aug 21, 2026 17:5910,47518,776,1669,218,00002,117,632
6Aug 21, 2026 17:5910,48918,771,9149,231,00002,117,632
7Aug 21, 2026 17:5910,49518,814,9369,236,00002,117,632
8Aug 21, 2026 17:5910,49618,842,1429,237,00002,117,632
9Aug 21, 2026 17:5910,52618,720,0159,263,00002,113,536