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 20, 2026 19:35Josu San MartinJosu San MartinScore: 16,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 19:3916,11524,999,60913,135,0001,047,0002,113,536
2May 20, 2026 19:3916,18726,131,51713,191,0001,054,0002,117,632
3May 20, 2026 19:3916,31025,745,97713,313,0001,040,0002,113,536
4May 20, 2026 19:3916,37325,760,97613,274,0001,135,0002,117,632
5May 20, 2026 19:3916,44825,638,36413,442,0001,033,0002,113,536
6May 20, 2026 19:3916,51225,031,79213,474,0001,057,0002,113,536
7May 20, 2026 19:3916,54026,859,95913,408,0001,148,0002,113,536
8May 20, 2026 19:3916,64825,918,03113,607,0001,044,0002,113,536
9May 20, 2026 19:3917,07026,355,04313,981,0001,041,0002,113,536