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 24, 2026 07:52olliecrowolliecrowScore: 12,769Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 07:5312,67627,541,8869,127,0002,028,0002,564,096
2Apr 24, 2026 07:5312,72526,590,1099,162,0002,036,0002,564,096
3Apr 24, 2026 07:5312,72530,479,64210,180,0001,018,0002,342,912
4Apr 24, 2026 07:5312,73426,870,4949,169,0002,037,0002,306,048
5Apr 24, 2026 07:5312,76928,631,74210,216,0001,021,0002,510,848
6Apr 24, 2026 07:5312,77928,229,51910,224,0001,022,0002,555,904
7Apr 24, 2026 07:5312,78529,603,14010,229,0001,022,0002,301,952
8Apr 24, 2026 07:5312,85635,574,59910,286,0001,028,0002,306,048
9Apr 24, 2026 07:5312,87728,346,08510,302,0001,030,0002,314,240