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 listApr 28, 2026 22:00olliecrowolliecrowScore: 12,638Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 22:0012,49426,998,6938,996,0001,999,0002,424,832
2Apr 28, 2026 22:0012,57627,986,1589,055,0002,012,0002,424,832
3Apr 28, 2026 22:0012,62129,055,3788,078,0003,029,0002,416,640
4Apr 28, 2026 22:0012,62633,110,9699,091,0002,020,0002,420,736
5Apr 28, 2026 22:0012,63833,914,2409,100,0002,022,0002,428,928
6Apr 28, 2026 22:0012,66530,170,9519,120,0002,026,0002,408,448
7Apr 28, 2026 22:0012,67528,944,64010,140,0001,014,0002,424,832
8Apr 28, 2026 22:0012,70033,199,2789,144,0002,032,0002,420,736
9Apr 28, 2026 22:0012,72134,035,8519,160,0002,035,0002,428,928