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 04:05olliecrowolliecrowScore: 12,344Success
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 04:0612,27928,402,0549,726,0001,080,0002,338,816
2Apr 29, 2026 04:0612,29727,987,0949,740,0001,082,0002,330,624
3Apr 29, 2026 04:0612,31128,014,4369,751,0001,083,0002,338,816
4Apr 29, 2026 04:0612,31926,195,6779,757,0001,084,0002,342,912
5Apr 29, 2026 04:0612,34426,229,3118,888,0001,975,0002,424,832
6Apr 29, 2026 04:0612,34426,602,4148,888,0001,975,0002,338,816
7Apr 29, 2026 04:0612,35228,145,0848,894,0001,976,0002,318,336
8Apr 29, 2026 04:0612,36931,968,0809,797,0001,088,0002,330,624
9Apr 29, 2026 04:0612,41228,770,8178,937,0001,986,0002,338,816