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 23, 2026 22:13olliecrowolliecrowScore: 13,385Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 22:1413,25031,655,4709,540,0002,120,0002,564,096
2Apr 23, 2026 22:1413,32930,379,75210,664,0001,066,0002,301,952
3Apr 23, 2026 22:1413,33530,074,64510,669,0001,066,0002,322,432
4Apr 23, 2026 22:1413,37330,925,3059,808,0001,961,0002,371,584
5Apr 23, 2026 22:1413,38529,529,1119,638,0002,141,0002,314,240
6Apr 23, 2026 22:1413,46829,929,9748,889,0002,963,0002,367,488
7Apr 23, 2026 22:1413,49233,001,8948,905,0002,968,0002,560,000
8Apr 23, 2026 22:1413,50029,443,7049,900,0001,980,0002,301,952
9Apr 23, 2026 22:1413,55428,168,2148,946,0002,982,0002,457,600