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 2, 2026 17:40NoSIMD_C#NoSIMD_C#Score: 107,631Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 2, 2026 17:40107,455120,248,16291,543,0003,017,0002,351,104
2Mar 2, 2026 17:40107,470123,874,85292,562,0002,012,0002,297,856
3Mar 2, 2026 17:40107,590125,030,02093,672,0001,007,0002,506,752
4Mar 2, 2026 17:40107,600125,232,61492,674,0002,014,0002,412,544
5Mar 2, 2026 17:40107,631126,985,34893,708,0001,007,0002,539,520
6Mar 2, 2026 17:40107,763119,718,96994,831,00002,351,104
7Mar 2, 2026 17:40107,784124,581,47794,850,00002,351,104
8Mar 2, 2026 17:40107,832119,791,76991,896,0002,996,0002,498,560
9Mar 2, 2026 17:40107,878118,355,45191,936,0002,997,0002,338,816