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 02:37olliecrowolliecrowScore: 25,760Success
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 02:4025,55639,585,02520,446,0002,044,0002,568,192
2Apr 29, 2026 02:4025,56530,589,17720,453,0002,045,0002,379,776
3Apr 29, 2026 02:4025,61238,481,41020,490,0002,049,0002,486,272
4Apr 29, 2026 02:4025,72730,596,36821,611,0001,029,0002,375,680
5Apr 29, 2026 02:4025,76030,604,49921,639,0001,030,0002,478,080
6Apr 29, 2026 02:4025,78130,674,40621,657,0001,031,0002,379,776
7Apr 29, 2026 02:4025,92930,775,18020,834,0001,984,0002,379,776
8Apr 29, 2026 02:4026,08030,924,66119,958,0002,993,0002,543,616
9Apr 29, 2026 02:4026,55530,622,18821,337,0002,032,0002,334,720