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 22, 2026 12:52BenBenScore: 45,529Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 12:5245,31357,789,81235,889,0003,987,0002,453,504
2Apr 22, 2026 12:5245,35356,946,86435,920,0003,991,0002,457,600
3Apr 22, 2026 12:5245,39558,226,79435,954,0003,994,0002,539,520
4Apr 22, 2026 12:5245,51255,977,14636,046,0004,005,0002,445,312
5Apr 22, 2026 12:5245,52955,594,87436,060,0004,006,0002,453,504
6Apr 22, 2026 12:5245,59360,756,45836,110,0004,012,0002,338,816
7Apr 22, 2026 12:5245,61161,903,51236,125,0004,013,0002,461,696
8Apr 22, 2026 12:5245,69856,415,66136,194,0004,021,0002,449,408
9Apr 22, 2026 12:5245,74354,051,64037,235,0003,019,0002,338,816