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:08Andrew EpsteinAndrew EpsteinScore: 829,752Success
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:11804,480717,820,596700,166,0007,777,0002,121,728stderr
2Aug 21, 2026 19:11818,752730,289,144713,162,0007,340,0002,121,728stderr
3Aug 21, 2026 19:11823,738734,810,630717,579,0007,311,0002,121,728stderr
4Aug 21, 2026 19:11824,575736,110,945718,452,0007,174,0002,121,728stderr
5Aug 21, 2026 19:11829,752740,140,718722,802,0007,380,0002,121,728stderr
6Aug 21, 2026 19:11837,684747,044,394729,387,0007,775,0002,121,728stderr
7Aug 21, 2026 19:11866,370773,477,444755,315,0007,091,0002,121,728stderr
8Aug 21, 2026 19:11893,309795,919,713779,109,0007,003,0002,121,728stderr
9Aug 21, 2026 19:11909,397810,125,197792,284,0007,986,0002,121,728stderr