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 16, 2024 20:37Ivan BessonovIvan BessonovScore: 31,534Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 20:3731,33849,516,21026,556,0001,021,0002,281,472
2May 16, 2024 20:3731,36658,271,74726,580,0001,022,0002,289,664
3May 16, 2024 20:3731,39755,301,76326,606,0001,023,0002,289,664
4May 16, 2024 20:3731,41453,187,22126,621,0001,023,0002,375,680
5May 16, 2024 20:3731,42454,979,02126,629,0001,024,0002,273,280
6May 16, 2024 20:3731,48553,951,32826,681,0001,026,0002,289,664
7May 16, 2024 20:3731,53457,123,71927,750,00002,289,664
8May 16, 2024 20:3731,53850,560,14625,771,0001,982,0002,289,664
9May 16, 2024 20:3731,54354,357,64226,730,0001,028,0002,289,664
10May 16, 2024 20:3734,450104,182,36330,316,42102,256,896
11May 16, 2024 20:3734,517101,933,10930,374,54202,252,800
12May 16, 2024 20:3734,63095,637,27330,474,27502,256,896