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 listSep 29, 2026 09:00NicoNicoScore: 827,976Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2026 09:03826,387737,642,791726,096,0001,125,0002,113,536
2Sep 29, 2026 09:03826,595738,458,606726,305,0001,099,0002,113,536
3Sep 29, 2026 09:03826,667737,895,884726,414,0001,053,0002,113,536
4Sep 29, 2026 09:03827,564738,763,565727,089,0001,168,0002,113,536
5Sep 29, 2026 09:03827,976739,052,575727,497,0001,122,0002,113,536
6Sep 29, 2026 09:03828,044739,160,270727,613,0001,066,0002,113,536
7Sep 29, 2026 09:03828,562739,701,553728,030,0001,105,0002,113,536
8Sep 29, 2026 09:03831,050741,757,815730,245,0001,079,0002,113,536
9Sep 29, 2026 09:03832,651743,635,307731,726,0001,007,0002,113,536