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 listMar 18, 2026 07:02limanjun99limanjun99Score: 290,385Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 07:02289,619279,364,866252,867,0001,998,0002,289,664
2Mar 18, 2026 07:02290,155286,014,841254,335,0001,001,0002,273,280
3Mar 18, 2026 07:02290,168286,048,963254,347,0001,001,0002,281,472
4Mar 18, 2026 07:02290,347277,756,426254,504,0001,001,0002,281,472
5Mar 18, 2026 07:02290,385280,475,138254,537,0001,002,0002,273,280
6Mar 18, 2026 07:02290,463285,730,119253,611,0001,996,0002,277,376
7Mar 18, 2026 07:02290,536281,755,709254,670,0001,002,0002,281,472
8Mar 18, 2026 07:02290,673282,778,879253,794,0001,998,0002,289,664
9Mar 18, 2026 07:02290,745277,367,902253,858,0001,998,0002,277,376