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:53Josu San MartinJosu San MartinScore: 12,188Success
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:5712,11419,830,6828,570,0002,091,0002,117,632
2May 22, 2026 00:5712,15221,690,9258,601,0002,093,0002,117,632
3May 22, 2026 00:5712,16225,315,6318,608,0002,095,0002,113,536
4May 22, 2026 00:5712,17122,989,4058,631,0002,080,0002,117,632
5May 22, 2026 00:5712,18820,002,4088,618,0002,108,0002,113,536
6May 22, 2026 00:5712,29721,310,8348,714,0002,108,0002,117,632
7May 22, 2026 00:5712,30721,997,1818,715,0002,116,0002,117,632
8May 22, 2026 00:5712,31934,657,7828,681,0002,160,0002,113,536
9May 22, 2026 00:5712,54421,424,4958,666,0002,373,0002,113,536