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 listMay 22, 2026 01:12Josu San MartinJosu San MartinScore: 10,685Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 01:1510,66919,500,1128,268,0001,121,0002,117,632
2May 22, 2026 01:1510,67519,747,8678,289,0001,105,0002,117,632
3May 22, 2026 01:1510,67618,918,3478,284,0001,111,0002,117,632
4May 22, 2026 01:1510,67719,881,2488,290,0001,106,0002,117,632
5May 22, 2026 01:1510,68519,098,4778,287,0001,116,0002,117,632
6May 22, 2026 01:1510,68818,635,0928,306,0001,100,0002,117,632
7May 22, 2026 01:1510,68821,510,5628,287,0001,119,0002,113,536
8May 22, 2026 01:1510,69818,676,9388,302,0001,113,0002,117,632
9May 22, 2026 01:1510,76219,306,0698,313,0001,158,0002,117,632