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 10, 2026 15:56Andrew EpsteinAndrew EpsteinScore: 5,417Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 10, 2026 15:595,37913,124,9723,687,0001,047,0002,117,632
2Sep 10, 2026 15:595,38514,816,9553,587,0001,152,0002,117,632
3Sep 10, 2026 15:595,40513,268,0163,710,0001,047,0002,117,632
4Sep 10, 2026 15:595,41113,117,7193,705,0001,057,0002,117,632
5Sep 10, 2026 15:595,41713,265,6213,714,0001,053,0002,117,632
6Sep 10, 2026 15:595,42016,150,8213,714,0001,056,0002,117,632
7Sep 10, 2026 15:595,45213,052,3483,717,0001,081,0002,117,632
8Sep 10, 2026 15:595,51113,235,1903,420,0001,430,0002,117,632
9Sep 10, 2026 15:595,54313,298,9263,742,0001,136,0002,117,632