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:53zielajzielajScore: 199,978Success
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:34196,335199,780,693171,777,000998,0002,367,488
2Feb 6, 2026 02:34196,518193,023,620170,937,0001,999,0002,277,376
3Feb 6, 2026 02:53198,230198,730,495174,442,00002,277,376
4Feb 6, 2026 02:53199,978203,013,819174,982,000999,0002,277,376
5Feb 6, 2026 02:34200,592201,077,861175,519,0001,002,0002,363,392
6Feb 6, 2026 02:53200,898203,259,940174,793,0001,997,0002,277,376