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 8, 2024 13:44Ivan BessonovIvan BessonovScore: 48,759Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2024 13:4443,750104,015,32538,499,67602,252,800
2May 8, 2024 13:4443,753108,813,35638,502,20202,256,896
3May 8, 2024 13:4443,82599,743,09138,566,01802,260,992
4May 8, 2024 13:4448,51869,392,00342,696,00002,273,280
5May 8, 2024 13:4448,58965,791,05441,764,000994,0002,277,376
6May 8, 2024 13:4448,72668,298,68040,885,0001,994,0002,281,472
7May 8, 2024 13:4448,75962,609,96240,913,0001,995,0002,289,664
8May 8, 2024 13:4448,79773,011,18140,944,0001,997,0002,281,472
9May 8, 2024 13:4448,84075,181,95840,980,0001,999,0002,289,664
10May 8, 2024 13:4448,84868,607,40140,987,0001,999,0002,265,088
11May 8, 2024 13:4448,87670,708,35642,011,0001,000,0002,289,664
12May 8, 2024 13:4449,00068,184,76841,115,0002,005,0002,289,664