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 7, 2026 17:14b pb pScore: 1,663,591Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 7, 2026 17:141,654,4341,484,758,8281,433,919,00021,983,0002,412,544
2Apr 7, 2026 17:141,659,0071,487,742,0881,435,944,00023,982,0002,465,792
3Apr 7, 2026 17:141,660,2991,486,892,4781,429,084,00031,979,0002,502,656
4Apr 7, 2026 17:141,660,3781,492,714,1881,432,151,00028,982,0002,265,088
5Apr 7, 2026 17:141,663,5911,487,943,0491,435,980,00027,980,0002,506,752
6Apr 7, 2026 17:141,664,7111,499,034,3721,440,964,00023,982,0002,510,848
7Apr 7, 2026 17:141,672,1591,505,787,2831,443,529,00027,971,0002,510,848
8Apr 7, 2026 17:141,683,5601,510,075,2181,450,564,00030,969,0002,289,664
9Apr 7, 2026 17:141,684,9141,514,159,8651,461,743,00020,981,0002,506,752