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:40Josu San MartinJosu San MartinScore: 12,157Success
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:4412,13422,967,7588,584,0002,094,0002,113,536
2May 22, 2026 00:4412,13921,622,2988,591,0002,092,0002,117,632
3May 22, 2026 00:4412,14222,066,2928,587,0002,098,0002,117,632
4May 22, 2026 00:4412,14820,934,0098,603,0002,088,0002,117,632
5May 22, 2026 00:4412,15721,077,3578,598,0002,101,0002,117,632
6May 22, 2026 00:4412,15721,596,0378,602,0002,097,0002,117,632
7May 22, 2026 00:4412,16721,667,8028,621,0002,086,0002,117,632
8May 22, 2026 00:4412,19621,787,8798,644,0002,089,0002,113,536
9May 22, 2026 00:4412,37622,960,0118,595,0002,296,0002,113,536