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 listJan 17, 2026 05:50Josu San MartinJosu San MartinScore: 39,439Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:5039,13356,087,72534,437,00002,441,216
2Jan 17, 2026 05:5039,24560,548,96534,536,00002,445,312
3Jan 17, 2026 05:5039,26758,682,17933,539,0001,016,0002,367,488
4Jan 17, 2026 05:5139,28954,836,36233,558,0001,016,0002,457,600
5Jan 17, 2026 05:5139,32259,181,31234,603,00002,445,312
6Jan 17, 2026 05:5139,32359,246,35733,587,0001,017,0002,453,504
7Jan 17, 2026 05:5139,32859,419,23333,592,0001,017,0002,449,408
8Jan 17, 2026 05:5039,38163,553,94033,636,0001,019,0002,527,232
9Jan 17, 2026 05:5139,43660,716,10033,684,0001,020,0002,367,488
10Jan 17, 2026 05:5139,43961,917,99133,686,0001,020,0002,449,408
11Jan 17, 2026 05:5039,45167,638,77133,696,0001,021,0002,449,408
12Jan 17, 2026 05:5139,45259,096,27634,718,00002,445,312
13Jan 17, 2026 05:5039,49060,859,34333,729,0001,022,0002,285,568
14Jan 17, 2026 05:5039,59057,241,26532,849,0001,990,0002,285,568
15Jan 17, 2026 05:5039,64757,903,49531,899,0002,990,0002,277,376
16Jan 17, 2026 05:5139,65162,516,93534,893,00002,445,312
17Jan 17, 2026 05:5039,66559,748,84433,908,000997,0002,453,504
18Jan 17, 2026 05:5139,66559,667,04332,911,0001,994,0002,457,600