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 listMay 22, 2026 01:01Josu San MartinJosu San MartinScore: 12,084Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 01:0412,05221,957,8518,503,0002,103,0002,113,536
2May 22, 2026 01:0412,06320,291,5248,488,0002,128,0002,117,632
3May 22, 2026 01:0412,06921,556,8938,532,0002,089,0002,117,632
4May 22, 2026 01:0412,07520,400,7348,538,0002,088,0002,117,632
5May 22, 2026 01:0412,08420,866,1418,563,0002,071,0002,117,632
6May 22, 2026 01:0412,11521,115,7758,542,0002,120,0002,113,536
7May 22, 2026 01:0412,17921,114,0028,595,0002,123,0002,113,536
8May 22, 2026 01:0412,18222,203,3708,596,0002,125,0002,113,536
9May 22, 2026 01:0412,24222,106,2558,651,0002,122,0002,113,536