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 19:59Andrew EpsteinAndrew EpsteinScore: 7,689Success
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 20:027,63416,196,6016,718,00002,117,632
2Aug 21, 2026 20:027,65316,335,4006,735,00002,117,632
3Aug 21, 2026 20:027,68116,345,6296,760,00002,117,632
4Aug 21, 2026 20:027,68916,315,8516,767,00002,117,632
5Aug 21, 2026 20:027,68916,361,7216,767,00002,117,632
6Aug 21, 2026 20:027,69016,366,5096,768,00002,117,632
7Aug 21, 2026 20:027,71216,375,2606,787,00002,117,632
8Aug 21, 2026 20:027,72616,373,9946,799,00002,117,632
9Aug 21, 2026 20:027,73716,562,7516,809,00002,117,632