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 14, 2024 01:29zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 13, 2024 21:3300000Error: expected "51283341042953 ", got "51283341042826 "stderr
2Dec 13, 2024 21:347,19421,873,0716,331,00002,510,848
3Dec 13, 2024 21:347,24528,736,8655,314,0001,062,0002,506,752
4Dec 13, 2024 21:347,24526,983,5215,314,0001,062,0002,531,328
5Dec 13, 2024 21:347,26618,656,9355,329,0001,065,0002,510,848
6Dec 13, 2024 21:347,27223,742,2896,399,00002,531,328
7Dec 13, 2024 21:347,28122,012,7636,407,00002,506,752
8Dec 13, 2024 21:347,29524,389,1715,350,0001,070,0002,506,752
9Dec 13, 2024 21:347,36320,965,3146,479,00002,510,848
10Dec 13, 2024 21:347,53526,236,1695,526,0001,105,0002,506,752
11Dec 14, 2024 03:2111,88855,442,1368,369,0002,092,0002,506,752
12Dec 14, 2024 03:2112,27557,668,7566,874,0003,928,0002,510,848
13Dec 14, 2024 03:2112,36163,905,8137,615,0003,263,0002,519,040
14Dec 14, 2024 02:1412,49851,569,1605,999,0004,999,0002,510,848
15Dec 14, 2024 02:1412,53059,505,7447,017,0004,009,0002,506,752
16Dec 14, 2024 02:1412,83461,464,6527,187,0004,107,0002,523,136
17Dec 14, 2024 01:2814,37679,601,6686,812,0005,839,0002,498,560
18Dec 14, 2024 01:2915,12577,228,7249,215,0004,095,0002,506,752
19Dec 14, 2024 01:2815,48150,216,0399,731,0003,892,0002,498,560
20Dec 14, 2024 01:2915,77073,630,7317,473,0006,405,0002,510,848
21Dec 14, 2024 01:2818,48975,902,29511,186,0005,084,0002,273,280
22Dec 14, 2024 01:2918,51782,038,39211,203,0005,092,0002,531,328