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 listFeb 6, 2026 02:33zielajzielajScore: 197,766Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 02:25196,310197,533,175171,755,000998,0002,363,392
2Feb 6, 2026 02:21196,669194,190,708172,069,0001,000,0002,355,200
3Feb 6, 2026 02:29196,883197,509,871173,257,00002,363,392
4Feb 6, 2026 02:21197,128194,701,130173,473,00002,277,376
5Feb 6, 2026 02:29197,252195,817,899171,587,0001,995,0002,277,376
6Feb 6, 2026 02:25197,499196,763,157171,802,0001,997,0002,531,328
7Feb 6, 2026 02:21197,766194,329,964173,034,0001,000,0002,363,392
8Feb 6, 2026 02:29198,140195,497,259173,361,0001,002,0002,277,376
9Feb 6, 2026 02:25198,284200,349,251174,490,00002,277,376
10Feb 6, 2026 02:33198,760193,687,049173,910,000999,0002,277,376
11Feb 6, 2026 02:33198,925202,244,227174,054,0001,000,0002,277,376
12Feb 6, 2026 02:33200,069203,907,253174,061,0002,000,0002,277,376