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 listMar 19, 2026 05:22limanjun99limanjun99Score: 24,899Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 05:2224,58845,836,87121,637,00002,400,256
2Mar 19, 2026 05:2224,63246,571,95020,644,0001,032,0002,473,984
3Mar 19, 2026 05:2224,66751,614,14720,674,0001,033,0002,461,696
4Mar 19, 2026 05:2224,69047,939,48920,693,0001,034,0002,461,696
5Mar 19, 2026 05:2224,89956,410,10220,868,0001,043,0002,322,432
6Mar 19, 2026 05:2224,90646,977,21719,925,0001,992,0002,396,160
7Mar 19, 2026 05:2224,97244,532,60519,978,0001,997,0002,478,080
8Mar 19, 2026 05:2225,05944,860,88420,048,0002,004,0002,461,696
9Mar 19, 2026 05:2225,07652,014,59821,064,0001,003,0002,465,792