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 16, 2026 02:46zielajzielajScore: 3,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2026 02:433,40218,946,1261,996,000998,0002,355,200
2Jan 16, 2026 02:433,40717,833,6161,999,000999,0002,359,296
3Jan 16, 2026 02:443,41418,801,2422,003,0001,001,0002,535,424
4Jan 16, 2026 02:443,42620,021,4862,010,0001,005,0002,359,296
5Jan 16, 2026 02:433,43822,814,8232,017,0001,008,0002,359,296
6Jan 16, 2026 02:473,45119,215,0392,025,0001,012,0002,363,392
7Jan 16, 2026 02:463,45317,833,5412,026,0001,013,0002,277,376
8Jan 16, 2026 02:473,46820,488,3772,035,0001,017,0002,355,200
9Jan 16, 2026 02:443,57719,983,5861,049,0002,099,0002,359,296
10Jan 16, 2026 02:473,74718,888,3043,297,00002,351,104
11Jan 16, 2026 02:464,22016,408,5113,714,00002,355,200
12Jan 16, 2026 02:464,32317,565,4553,804,00002,347,008