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 listApr 18, 2026 06:49Charles CabergsCharles CabergsScore: 45,020Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2026 06:5944,81761,494,73637,417,0002,022,0002,449,408
2Apr 18, 2026 06:4944,83167,277,44638,440,0001,011,0002,289,664
3Apr 18, 2026 06:4944,84866,760,24438,455,0001,011,0002,441,216
4Apr 18, 2026 06:5944,86664,664,65938,470,0001,012,0002,437,120
5Apr 18, 2026 06:5944,89960,635,60839,511,00002,433,024
6Apr 18, 2026 06:4944,91762,786,85538,514,0001,013,0002,289,664
7Apr 18, 2026 06:4944,91967,555,57137,502,0002,027,0002,441,216
8Apr 18, 2026 06:5944,94066,077,93938,533,0001,014,0002,437,120
9Apr 18, 2026 06:5944,95761,747,18739,562,00002,281,472
10Apr 18, 2026 06:4945,02064,643,53537,587,0002,031,0002,289,664
11Apr 18, 2026 06:4945,02062,413,81538,603,0001,015,0002,289,664
12Apr 18, 2026 06:4945,03362,148,48537,597,0002,032,0002,441,216
13Apr 18, 2026 06:4945,03966,365,49039,634,00002,289,664
14Apr 18, 2026 06:5945,07363,484,68738,647,0001,017,0002,445,312
15Apr 18, 2026 06:5945,08163,655,44337,637,0002,034,0002,445,312
16Apr 18, 2026 06:5945,09966,572,87338,670,0001,017,0002,281,472
17Apr 18, 2026 06:4945,20773,121,30137,742,0002,040,0002,289,664
18Apr 18, 2026 06:5945,32672,167,74936,896,0002,991,0002,281,472