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 01:04zielajzielajScore: 3,436Success
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 01:033,40720,880,2271,999,000999,0002,359,296
2Jan 24, 2026 01:053,41016,533,9262,001,0001,000,0002,363,392
3Jan 24, 2026 01:033,42619,194,6402,010,0001,005,0002,277,376
4Jan 24, 2026 01:053,43421,336,5692,015,0001,007,0002,277,376
5Jan 24, 2026 01:043,43617,612,5992,016,0001,008,0002,277,376
6Jan 24, 2026 01:043,44720,401,2302,022,0001,011,0002,535,424
7Jan 24, 2026 01:033,44819,038,5901,011,0002,023,0002,277,376
8Jan 24, 2026 01:043,45719,670,3312,028,0001,014,0002,510,848
9Jan 24, 2026 01:053,55323,334,7982,085,0001,042,0002,535,424