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 24, 2026 21:10zielajzielajScore: 3,467Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2026 21:113,38515,539,5341,986,000993,0002,355,200
2Jan 24, 2026 21:113,41323,630,7652,002,0001,001,0002,363,392
3Jan 24, 2026 21:103,43016,250,1562,012,0001,006,0002,351,104
4Jan 24, 2026 21:103,46722,694,7522,034,0001,017,0002,351,104
5Jan 24, 2026 21:113,53916,818,2271,038,0002,076,0002,359,296
6Jan 24, 2026 21:103,55319,965,5671,042,0002,085,0002,359,296