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 17:10Yuriy LyfenkoYuriy LyfenkoScore: 14,452Success
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 17:0614,31830,131,47912,600,00002,424,832
2Mar 20, 2026 17:0614,38627,658,42311,605,0001,055,0002,408,448
3Mar 20, 2026 17:0614,41134,662,83911,626,0001,056,0002,277,376
4Mar 20, 2026 17:0614,42533,451,83811,637,0001,057,0002,408,448
5Mar 20, 2026 17:1014,42745,823,17911,638,0001,058,0002,412,544
6Mar 20, 2026 17:0614,43439,179,96111,644,0001,058,0002,412,544
7Mar 20, 2026 17:0614,45231,789,19111,659,0001,059,0002,404,352
8Mar 20, 2026 17:1014,47532,144,38710,615,0002,123,0002,351,104
9Mar 20, 2026 17:1014,47730,041,00512,740,00002,416,640
10Mar 20, 2026 17:0614,52829,530,53811,720,0001,065,0002,281,472
11Mar 20, 2026 17:0614,91040,328,06911,103,0002,018,0002,473,984
12Mar 20, 2026 17:0614,95143,154,72312,218,000939,0002,277,376