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 14:47Josu San MartinJosu San MartinScore: 11,748Success
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 14:5011,46020,171,1298,994,0001,091,0002,117,632
2May 19, 2026 14:5011,58521,220,1879,108,0001,087,0002,117,632
3May 19, 2026 14:5011,67720,047,7299,194,0001,082,0002,117,632
4May 19, 2026 14:5011,68419,936,2869,245,0001,037,0002,117,632
5May 19, 2026 14:5011,74819,376,2339,299,0001,040,0002,117,632
6May 19, 2026 14:5011,76019,488,4079,294,0001,055,0002,117,632
7May 19, 2026 14:5011,76921,244,4429,322,0001,035,0002,117,632
8May 19, 2026 14:5011,91519,562,6629,450,0001,036,0002,113,536
9May 19, 2026 14:5012,99321,275,12510,400,0001,034,0002,117,632