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 listDec 8, 2024 23:37zielajzielajScore: 36,658Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 23:3736,49056,154,88731,108,0001,003,0002,269,184
2Dec 8, 2024 23:3736,52651,440,34331,139,0001,004,0002,531,328
3Dec 8, 2024 23:3736,59259,168,35630,189,0002,012,0002,269,184
4Dec 8, 2024 23:3736,59353,264,12731,196,0001,006,0002,355,200
5Dec 8, 2024 23:3736,65856,199,77332,259,00002,359,296
6Dec 8, 2024 23:3736,66056,489,89531,253,0001,008,0002,351,104
7Dec 8, 2024 23:3736,66457,697,90231,256,0001,008,0002,277,376
8Dec 8, 2024 23:3736,67856,953,24531,269,0001,008,0002,359,296
9Dec 8, 2024 23:3736,74052,772,15731,321,0001,010,0002,531,328