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 22, 2026 00:26Josu San MartinJosu San MartinScore: 11,930Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 00:2811,90621,875,5238,401,0002,077,0002,117,632
2May 22, 2026 00:2811,92019,866,7108,413,0002,077,0002,117,632
3May 22, 2026 00:2811,92321,398,4978,412,0002,081,0002,113,536
4May 22, 2026 00:2811,92319,728,9798,417,0002,076,0002,117,632
5May 22, 2026 00:2811,93021,001,0068,421,0002,078,0002,117,632
6May 22, 2026 00:2811,94519,745,5868,412,0002,100,0002,117,632
7May 22, 2026 00:2811,96719,739,8448,431,0002,100,0002,117,632
8May 22, 2026 00:2811,97919,738,4868,448,0002,094,0002,117,632
9May 22, 2026 00:2812,07921,098,5958,406,0002,224,0002,117,632