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 06:10Josu San MartinJosu San MartinScore: 35,685Success
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 06:0935,59260,361,72630,311,0001,010,0002,453,504
2Jan 17, 2026 06:0935,60955,047,93029,315,0002,021,0002,457,600
3Jan 17, 2026 06:0935,61455,768,81031,340,00002,449,408
4Jan 17, 2026 06:0935,66854,207,12030,376,0001,012,0002,445,312
5Jan 17, 2026 06:0935,68056,982,75331,398,00002,457,600
6Jan 17, 2026 06:1035,68355,357,02430,389,0001,012,0002,449,408
7Jan 17, 2026 06:0935,68552,810,82630,390,0001,013,0002,449,408
8Jan 17, 2026 06:0935,69550,391,76530,399,0001,013,0002,449,408
9Jan 17, 2026 06:0935,69757,293,48630,400,0001,013,0002,449,408
10Jan 17, 2026 06:0935,73055,524,98630,428,0001,014,0002,449,408
11Jan 17, 2026 06:1035,74952,294,44730,445,0001,014,0002,441,216
12Jan 17, 2026 06:1035,75156,498,28530,447,0001,014,0002,457,600