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 listApr 25, 2026 02:03olliecrowolliecrowScore: 13,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 02:0413,22529,279,2279,522,0002,116,0002,564,096stderr
2Apr 25, 2026 02:0413,23728,852,9359,531,0002,118,0002,564,096stderr
3Apr 25, 2026 02:0413,26230,525,8768,488,0003,183,0002,564,096stderr
4Apr 25, 2026 02:0413,27525,953,73210,620,0001,062,0002,560,000stderr
5Apr 25, 2026 02:0413,28129,009,9979,563,0002,125,0002,551,808stderr
6Apr 25, 2026 02:0413,28431,434,3409,565,0002,125,0002,555,904stderr
7Apr 25, 2026 02:0413,35528,076,55911,753,00002,387,968stderr
8Apr 25, 2026 02:0413,36131,647,1068,819,0002,939,0002,568,192stderr
9Apr 25, 2026 02:0413,41426,742,84710,732,0001,073,0002,564,096stderr