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 listSep 15, 2026 23:55Josu San MartinJosu San MartinScore: 5,120Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 15, 2026 23:595,05712,992,6614,451,00002,113,536
2Sep 15, 2026 23:595,06413,076,5594,457,00002,113,536
3Sep 15, 2026 23:595,06512,986,0804,458,00002,113,536
4Sep 15, 2026 23:595,08113,156,9444,472,00002,113,536
5Sep 15, 2026 23:595,12013,127,1094,506,00002,113,536
6Sep 15, 2026 23:595,19513,115,8904,572,00002,113,536
7Sep 15, 2026 23:595,46313,375,5404,808,00002,113,536
8Sep 15, 2026 23:595,51314,619,4594,852,00002,113,536
9Sep 15, 2026 23:595,53513,470,9044,871,00002,113,536