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 20, 2026 18:37Yuriy LyfenkoYuriy LyfenkoScore: 12,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 18:3212,13324,441,96310,677,00002,428,928
2Mar 20, 2026 18:3212,18626,927,30610,724,00002,424,832
3Mar 20, 2026 18:3212,20727,980,2769,668,0001,074,0002,433,024
4Mar 20, 2026 18:3212,21132,901,3379,672,0001,074,0002,420,736
5Mar 20, 2026 18:3212,23231,351,31710,764,00002,269,184
6Mar 20, 2026 18:3212,37624,447,4759,901,000990,0002,424,832
7Mar 20, 2026 18:3212,37626,945,7838,911,0001,980,0002,433,024
8Mar 20, 2026 18:3212,39030,321,7268,921,0001,982,0002,433,024
9Mar 20, 2026 18:3212,39027,413,2249,912,000991,0002,428,928
10Mar 20, 2026 18:3712,39729,560,8749,918,000991,0002,531,328
11Mar 20, 2026 18:3212,39824,325,5689,919,000991,0002,428,928
12Mar 20, 2026 18:3212,40731,211,9608,933,0001,985,0002,428,928
13Mar 20, 2026 18:3712,41033,161,6558,936,0001,985,0002,424,832
14Mar 20, 2026 18:3212,41526,226,7968,939,0001,986,0002,519,040
15Mar 20, 2026 18:3712,45126,262,2138,965,0001,992,0002,269,184