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 02:45zielajzielajScore: 3,397Success
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 02:453,36616,040,2941,975,000987,0002,355,200
2Jan 17, 2026 02:453,36619,892,6581,975,000987,0002,351,104
3Jan 17, 2026 02:453,37816,680,7461,982,000991,0002,363,392
4Jan 17, 2026 02:453,38220,472,9431,984,000992,0002,277,376
5Jan 17, 2026 02:453,39718,339,1871,993,000996,0002,359,296
6Jan 17, 2026 02:453,41419,486,4842,003,0001,001,0002,359,296
7Jan 17, 2026 02:453,41614,939,9182,004,0001,002,0002,531,328
8Jan 17, 2026 02:453,43317,936,0762,014,0001,007,0002,359,296
9Jan 17, 2026 02:453,51819,244,2132,064,0001,032,0002,367,488