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 29, 2026 18:00olliecrowolliecrowScore: 12,440Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 18:0112,34429,971,0408,888,0001,975,0002,326,528
2Apr 29, 2026 18:0112,35625,913,3518,897,0001,977,0002,420,736
3Apr 29, 2026 18:0112,40630,125,1608,933,0001,985,0002,326,528
4Apr 29, 2026 18:0112,42830,997,0668,949,0001,988,0002,326,528
5Apr 29, 2026 18:0112,44028,394,3448,958,0001,990,0002,392,064
6Apr 29, 2026 18:0112,45535,963,1538,968,0001,993,0002,318,336
7Apr 29, 2026 18:0112,46332,746,4998,974,0001,994,0002,326,528
8Apr 29, 2026 18:0112,47729,877,0378,984,0001,996,0002,318,336
9Apr 29, 2026 18:0112,51927,581,8309,014,0002,003,0002,326,528