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 26, 2026 00:29olliecrowolliecrowScore: 13,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 26, 2026 00:3013,50230,458,8959,902,0001,980,0002,387,968
2Apr 26, 2026 00:3013,55435,163,1909,940,0001,988,0002,379,776
3Apr 26, 2026 00:3013,62229,295,75510,989,000999,0002,449,408
4Apr 26, 2026 00:3013,63225,408,4079,998,0001,999,0002,400,256
5Apr 26, 2026 00:3013,63829,783,62210,002,0002,000,0002,396,160
6Apr 26, 2026 00:3013,64528,667,88410,007,0002,001,0002,465,792
7Apr 26, 2026 00:3013,73532,313,22610,073,0002,014,0002,400,256
8Apr 26, 2026 00:3014,92729,090,71411,115,0002,021,0002,396,160
9Apr 26, 2026 00:3015,33730,536,94712,459,0001,038,0002,392,064