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 listFeb 22, 2025 11:14wainCGPwainCGPScore: 69,278Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2025 11:1469,17090,319,74056,879,0003,991,0002,502,656
2Feb 22, 2025 11:1469,17291,143,55857,878,0002,993,0002,342,912
3Feb 22, 2025 11:1469,21086,860,37956,912,0003,993,0002,453,504
4Feb 22, 2025 11:1469,27384,980,90854,964,0005,996,0002,486,272
5Feb 22, 2025 11:1469,27889,647,92356,968,0003,997,0002,490,368
6Feb 22, 2025 11:1469,49288,586,50357,143,0004,010,0002,478,080
7Feb 22, 2025 11:1469,56185,824,92957,200,0004,014,0002,433,024
8Feb 22, 2025 11:1469,58289,030,38256,213,0005,019,0002,473,984
9Feb 22, 2025 11:1469,64288,635,06057,267,0004,018,0002,367,488