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 7, 2026 03:42vahookvahookScore: 3,419Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 03:433,35923,212,545985,0001,971,0002,494,464
2Feb 7, 2026 03:433,38216,139,304992,0001,984,0002,490,368
3Feb 7, 2026 03:433,39918,913,825997,0001,994,0002,498,560
4Feb 7, 2026 03:433,40019,002,896997,0001,995,0002,490,368
5Feb 7, 2026 03:423,40620,582,190999,0001,998,0002,498,560
6Feb 7, 2026 03:423,41617,046,5101,002,0002,004,0002,277,376
7Feb 7, 2026 03:423,41919,942,7451,003,0002,006,0002,494,464
8Feb 7, 2026 03:423,42421,002,1601,004,0002,009,0002,277,376
9Feb 7, 2026 03:433,44425,723,0301,010,0002,021,0002,494,464
10Feb 7, 2026 03:433,45016,806,5211,012,0002,024,0002,498,560
11Feb 7, 2026 03:423,56018,290,5941,044,0002,089,0002,277,376
12Feb 7, 2026 03:423,61117,645,6841,059,0002,119,0002,498,560