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 listApr 20, 2026 22:24Charles CabergsCharles CabergsScore: 26,778Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 22:2426,69044,639,74321,446,0002,042,0002,408,448
2Apr 20, 2026 22:2426,72542,091,11821,473,0002,045,0002,404,352
3Apr 20, 2026 22:2426,74645,514,07122,514,0001,023,0002,404,352
4Apr 20, 2026 22:2426,75645,587,99222,523,0001,023,0002,437,120
5Apr 20, 2026 22:2426,77843,377,32621,516,0002,049,0002,412,544
6Apr 20, 2026 22:2426,80148,496,84222,560,0001,025,0002,408,448
7Apr 20, 2026 22:2426,80546,089,73621,538,0002,051,0002,416,640
8Apr 20, 2026 22:2426,80943,481,00022,567,0001,025,0002,260,992
9Apr 20, 2026 22:2426,83043,186,99722,585,0001,026,0002,281,472