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:43Andrew EpsteinAndrew EpsteinScore: 8,163Success
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 19:468,05416,701,5057,088,00002,117,632
2Aug 21, 2026 19:468,06316,630,0487,096,00002,117,632
3Aug 21, 2026 19:468,13716,728,9057,161,00002,117,632
4Aug 21, 2026 19:468,15916,714,6587,180,00002,117,632
5Aug 21, 2026 19:468,16316,771,2897,184,00002,117,632
6Aug 21, 2026 19:468,17216,748,9337,192,00002,117,632
7Aug 21, 2026 19:468,17716,844,1387,196,00002,117,632
8Aug 21, 2026 19:468,20017,060,8407,216,00002,117,632
9Aug 21, 2026 19:468,20416,702,2187,220,00002,117,632