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 4, 2026 22:43olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2026 22:46029,993,3029,295,0001,149,0002,449,408expected "51950014162690 ", got "51950014162583 "
2May 4, 2026 22:4611,76924,584,5619,247,0001,110,0002,461,696
3May 4, 2026 22:4611,79026,683,5249,240,0001,136,0002,457,600
4May 4, 2026 22:4611,79024,937,1819,250,0001,126,0002,461,696
5May 4, 2026 22:4611,80224,434,0729,240,0001,146,0002,441,216
6May 4, 2026 22:4611,80725,282,9539,259,0001,132,0002,453,504
7May 4, 2026 22:4611,82726,736,7529,341,0001,067,0002,453,504
8May 4, 2026 22:4611,82825,248,8839,270,0001,139,0002,449,408
9May 4, 2026 22:4611,83727,896,3509,267,0001,150,0002,453,504