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 21, 2024 13:43Ivan BessonovIvan BessonovScore: 16,186Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 13:4315,61339,819,56512,683,0001,056,0002,281,472
2May 21, 2024 13:4215,63234,170,29212,698,0001,058,0002,281,472
3May 21, 2024 13:4315,66732,008,51012,727,0001,060,0002,281,472
4May 21, 2024 13:4215,67230,783,06013,791,00002,281,472
5May 21, 2024 13:4215,75939,808,88712,878,000990,0002,347,008
6May 21, 2024 13:4315,78289,596,14513,888,56402,203,648
7May 21, 2024 13:4315,78529,403,11311,907,0001,984,0002,281,472
8May 21, 2024 13:4215,78638,245,84312,900,000992,0002,289,664
9May 21, 2024 13:4215,79043,710,85711,910,0001,985,0002,351,104
10May 21, 2024 13:4315,79135,146,32611,911,0001,985,0002,281,472
11May 21, 2024 13:4315,80030,712,81512,911,000993,0002,342,912
12May 21, 2024 13:4315,80330,929,74111,921,0001,986,0002,338,816
13May 21, 2024 13:4215,80535,332,67912,915,000993,0002,281,472
14May 21, 2024 13:4315,80733,074,92513,910,00002,273,280
15May 21, 2024 13:4315,86340,183,37611,965,0001,994,0002,347,008
16May 21, 2024 13:4215,99734,312,09413,072,0001,005,0002,351,104
17May 21, 2024 13:4316,08534,685,98012,133,0002,022,0002,281,472
18May 21, 2024 13:4216,09663,977,27714,164,53202,252,800
19May 21, 2024 13:4216,18671,901,06214,244,00202,252,800
20May 21, 2024 13:4216,19782,120,73014,253,67402,330,624
21May 21, 2024 13:4216,23336,330,10012,245,0002,040,0002,281,472
22May 21, 2024 13:4316,26029,945,63513,287,0001,022,0002,347,008
23May 21, 2024 13:4216,30335,116,50512,298,0002,049,0002,338,816
24May 21, 2024 13:4316,30482,086,19114,347,49702,207,744
25May 21, 2024 13:4316,30537,061,48013,324,0001,024,0002,281,472
26May 21, 2024 13:4316,31685,612,11014,358,11002,195,456
27May 21, 2024 13:4316,35580,983,76814,392,22402,195,456
28May 21, 2024 13:4316,37632,307,74311,323,0003,088,0002,347,008
29May 21, 2024 13:4316,38237,173,41212,357,0002,059,0002,281,472
30May 21, 2024 13:4316,39057,788,87014,423,53602,207,744
31May 21, 2024 13:4316,40640,230,03212,375,0002,062,0002,281,472
32May 21, 2024 13:4316,43339,112,47014,461,00002,342,912
33May 21, 2024 13:4316,43631,728,35314,464,00002,416,640
34May 21, 2024 13:4316,45131,759,11013,443,0001,034,0002,342,912
35May 21, 2024 13:4316,56340,591,09514,575,00002,281,472
36May 21, 2024 13:4316,70077,194,05614,696,23402,207,744