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 30, 2026 10:04olliecrowolliecrowScore: 13,181Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 10:0712,90633,417,5629,293,0002,065,0002,486,272
2Apr 30, 2026 10:0712,92729,387,0939,308,0002,068,0002,465,792
3Apr 30, 2026 10:0712,95019,443,96510,360,0001,036,0002,342,912
4Apr 30, 2026 10:0713,17919,598,3378,435,0003,163,0002,342,912
5Apr 30, 2026 10:0713,18119,561,85910,546,0001,054,0002,347,008
6Apr 30, 2026 10:0713,20019,638,3789,504,0002,112,0002,338,816
7Apr 30, 2026 10:0713,27619,629,42310,621,0001,062,0002,445,312
8Apr 30, 2026 10:0713,39019,536,8449,642,0002,142,0002,420,736
9Apr 30, 2026 10:0713,61019,765,5719,981,0001,996,0002,531,328