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 31, 2026 18:22vahookvahookScore: 4,457Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 31, 2026 18:224,41118,222,7491,941,0001,941,0002,506,752
2Jan 31, 2026 18:224,44220,666,3612,932,000977,0002,277,376
3Jan 31, 2026 18:224,44722,754,3262,935,000978,0002,277,376
4Jan 31, 2026 18:224,44820,536,1451,957,0001,957,0002,490,368
5Jan 31, 2026 18:224,45516,020,9901,960,0001,960,0002,482,176
6Jan 31, 2026 18:224,45521,332,4781,960,0001,960,0002,506,752
7Jan 31, 2026 18:224,45720,902,2821,961,0001,961,0002,486,272
8Jan 31, 2026 18:224,45719,824,4451,961,0001,961,0002,486,272
9Jan 31, 2026 18:224,46115,905,9781,963,0001,963,0002,486,272
10Jan 31, 2026 18:224,46421,092,4592,946,000982,0002,482,176
11Jan 31, 2026 18:224,47320,098,4491,968,0001,968,0002,277,376
12Jan 31, 2026 18:224,60920,553,5922,028,0002,028,0002,486,272