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 listMay 7, 2024 14:06Ivan BessonovIvan BessonovScore: 48,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 14:0644,93496,459,80139,541,77602,256,896
2May 7, 2024 14:0645,14196,493,96439,724,11502,256,896
3May 7, 2024 14:0645,223101,133,58039,795,92002,265,088
4May 7, 2024 14:0648,14364,841,90241,358,0001,008,0002,289,664
5May 7, 2024 14:0648,22062,393,95641,424,0001,010,0002,269,184
6May 7, 2024 14:0648,25365,035,74241,452,0001,011,0002,269,184
7May 7, 2024 14:0648,26564,153,66741,462,0001,011,0002,289,664
8May 7, 2024 14:0648,41666,708,87242,606,00002,289,664
9May 7, 2024 14:0648,43868,345,99942,625,00002,273,280
10May 7, 2024 14:0648,49168,602,09441,656,0001,016,0002,277,376
11May 7, 2024 14:0648,51468,483,33641,676,0001,016,0002,359,296
12May 7, 2024 14:0648,71467,903,38340,875,0001,993,0002,289,664