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 29, 2026 13:16TudyMTudyMScore: 33,960Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 13:1633,74748,246,08728,674,0001,024,0002,310,144
2Apr 29, 2026 13:1633,75345,593,29127,655,0002,048,0002,367,488
3Apr 29, 2026 13:1633,84450,257,37626,805,0002,978,0002,375,680
4Apr 29, 2026 13:1633,85649,716,49827,808,0001,986,0002,371,584
5Apr 29, 2026 13:1633,96050,361,06327,893,0001,992,0002,371,584
6Apr 29, 2026 13:1633,98545,914,56926,917,0002,990,0002,367,488
7Apr 29, 2026 13:1634,00346,510,01126,931,0002,992,0002,375,680
8Apr 29, 2026 13:1634,01246,251,24826,938,0002,993,0002,367,488
9Apr 29, 2026 13:1634,01352,453,38026,939,0002,993,0002,375,680