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 28, 2026 12:00Dominique GarmierDominique GarmierScore: 10,562Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:0010,32928,616,2565,050,0004,040,0002,392,064
2Apr 28, 2026 12:0010,41924,549,5787,132,0002,037,0002,494,464
3Apr 28, 2026 12:0010,43524,882,5668,163,0001,020,0002,392,064
4Apr 28, 2026 12:0010,54731,397,3278,251,0001,031,0002,396,160
5Apr 28, 2026 12:0010,56226,564,6388,263,0001,032,0002,400,256
6Apr 28, 2026 12:0010,57522,885,0748,272,0001,034,0002,396,160
7Apr 28, 2026 12:0010,62232,123,8568,310,0001,038,0002,400,256
8Apr 28, 2026 12:0010,67724,061,7578,352,0001,044,0002,396,160
9Apr 28, 2026 12:0010,69030,512,9076,586,0002,822,0002,404,352