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 16:22olliecrowolliecrowScore: 26,057Success
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 16:2425,75230,679,47321,632,0001,030,0002,347,008
2Apr 29, 2026 16:2425,82939,787,96620,664,0002,066,0002,486,272
3Apr 29, 2026 16:2425,88041,796,99420,705,0002,070,0002,473,984
4Apr 29, 2026 16:2426,00530,902,57919,900,0002,985,0002,359,296
5Apr 29, 2026 16:2426,05730,829,27620,937,0001,994,0002,375,680
6Apr 29, 2026 16:2426,20231,076,30520,051,0003,007,0002,351,104
7Apr 29, 2026 16:2426,21831,002,28820,063,0003,009,0002,359,296
8Apr 29, 2026 16:2426,30330,970,44320,128,0003,019,0002,359,296
9Apr 29, 2026 16:2426,37331,146,14520,182,0003,027,0002,379,776