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 7, 2026 04:33zielajzielajScore: 197,122Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:31195,878198,564,474171,371,0001,002,0002,277,376
2Feb 7, 2026 04:32196,623194,472,415171,028,0002,000,0002,351,104
3Feb 7, 2026 04:33196,724197,396,715172,117,0001,000,0002,342,912
4Feb 7, 2026 04:32197,091196,298,770173,440,00002,355,200
5Feb 7, 2026 04:31197,122200,329,425173,467,00002,351,104
6Feb 7, 2026 04:33198,636198,594,614174,800,00002,351,104
7Feb 7, 2026 04:31199,586199,934,376175,636,00002,502,656
8Feb 7, 2026 04:32200,210200,063,343176,185,00002,277,376
9Feb 7, 2026 04:33288,168279,054,025253,588,00002,277,376