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 17, 2026 02:26zielajzielajScore: 3,406Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 02:263,34820,636,9141,964,000982,0002,363,392
2Jan 17, 2026 02:263,38325,750,6361,985,000992,0002,363,392
3Jan 17, 2026 02:273,39520,597,9281,992,000996,0002,277,376
4Jan 17, 2026 02:273,39518,774,3171,992,000996,0002,363,392
5Jan 17, 2026 02:263,39918,704,4861,994,000997,0002,359,296
6Jan 17, 2026 02:263,40017,491,3971,995,000997,0002,355,200
7Jan 17, 2026 02:263,40624,524,5711,998,000999,0002,359,296
8Jan 17, 2026 02:263,41319,101,5062,002,0001,001,0002,359,296
9Jan 17, 2026 02:263,41420,432,1772,003,0001,001,0002,355,200
10Jan 17, 2026 02:273,44115,962,3042,019,0001,009,0002,359,296
11Jan 17, 2026 02:263,44418,854,4672,021,0001,010,0002,359,296
12Jan 17, 2026 02:263,48120,661,7142,042,0001,021,0002,363,392