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 listSep 24, 2026 03:58Matthias GörgensMatthias GörgensScore: 36,394Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 24, 2026 04:0136,33442,381,70330,886,0001,088,0002,113,536
2Sep 24, 2026 04:0136,34842,284,33830,901,0001,086,0002,113,536
3Sep 24, 2026 04:0136,36242,310,04030,914,0001,085,0002,113,536
4Sep 24, 2026 04:0136,39247,115,85030,930,0001,095,0002,113,536
5Sep 24, 2026 04:0136,39442,467,87330,942,0001,085,0002,113,536
6Sep 24, 2026 04:0136,43042,427,00930,983,0001,076,0002,113,536
7Sep 24, 2026 04:0136,44042,408,69330,969,0001,099,0002,113,536
8Sep 24, 2026 04:0136,45342,354,72530,971,0001,108,0002,113,536
9Sep 24, 2026 04:0136,51142,470,65131,042,0001,088,0002,113,536