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 4, 2026 17:10vahookvahookScore: 3,601Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 17:093,54922,330,5541,041,0002,082,0002,277,376
2Feb 4, 2026 17:093,56915,126,6521,047,0002,094,0002,498,560
3Feb 4, 2026 17:093,58024,333,7611,050,0002,100,0002,494,464
4Feb 4, 2026 17:093,58418,447,2462,103,0001,051,0002,498,560
5Feb 4, 2026 17:103,59420,609,3121,054,0002,109,0002,498,560
6Feb 4, 2026 17:093,59817,930,2501,055,0002,111,0002,277,376
7Feb 4, 2026 17:093,60121,079,9141,056,0002,113,0002,494,464
8Feb 4, 2026 17:093,61819,597,7921,061,0002,123,0002,498,560
9Feb 4, 2026 17:103,63420,579,9671,066,0002,132,0002,498,560
10Feb 4, 2026 17:093,64818,315,4101,070,0002,140,0002,498,560
11Feb 4, 2026 17:093,64920,629,2912,141,0001,070,0002,494,464
12Feb 4, 2026 17:103,67820,795,9081,079,0002,158,0002,498,560