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 listJan 17, 2026 05:53Josu San MartinJosu San MartinScore: 39,141Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:5238,98056,807,02134,302,00002,449,408
2Jan 17, 2026 05:5239,00361,111,10434,323,00002,445,312
3Jan 17, 2026 05:5239,00658,632,95733,316,0001,009,0002,445,312
4Jan 17, 2026 05:5239,02059,575,96433,329,0001,009,0002,453,504
5Jan 17, 2026 05:5339,02553,979,67034,342,00002,375,680
6Jan 17, 2026 05:5239,06153,261,58533,363,0001,011,0002,461,696
7Jan 17, 2026 05:5339,07055,385,37433,371,0001,011,0002,285,568
8Jan 17, 2026 05:5339,08657,531,35333,385,0001,011,0002,289,664
9Jan 17, 2026 05:5239,12857,365,52633,421,0001,012,0002,449,408
10Jan 17, 2026 05:5339,14160,695,13533,431,0001,013,0002,457,600
11Jan 17, 2026 05:5339,14255,546,77533,432,0001,013,0002,281,472
12Jan 17, 2026 05:5339,15261,601,18633,441,0001,013,0002,453,504
13Jan 17, 2026 05:5239,15755,460,60733,445,0001,013,0002,285,568
14Jan 17, 2026 05:5339,16354,135,29834,463,00002,453,504
15Jan 17, 2026 05:5339,20154,238,56033,483,0001,014,0002,285,568
16Jan 17, 2026 05:5239,20655,446,99233,487,0001,014,0002,445,312
17Jan 17, 2026 05:5339,29854,871,30533,565,0001,017,0002,445,312
18Jan 17, 2026 05:5239,30959,820,63433,575,0001,017,0002,449,408