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 19, 2026 21:28Josu San MartinJosu San MartinScore: 11,880Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 21:3111,64719,590,0339,239,0001,011,0002,117,632
2May 19, 2026 21:3111,65919,787,4779,258,0001,002,0002,117,632
3May 19, 2026 21:3111,86521,355,0079,423,0001,019,0002,117,632
4May 19, 2026 21:3111,86919,619,5919,435,0001,010,0002,117,632
5May 19, 2026 21:3111,88020,071,7059,394,0001,061,0002,113,536
6May 19, 2026 21:3111,97622,643,8529,474,0001,065,0002,117,632
7May 19, 2026 21:3112,06922,604,5889,558,0001,063,0002,113,536
8May 19, 2026 21:3112,22621,532,4209,750,0001,009,0002,117,632
9May 19, 2026 21:3112,39821,731,3489,849,0001,062,0002,113,536