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 listNov 13, 2024 11:35Dan StolyarovDan StolyarovScore: 272,452Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 11:35271,415267,633,262234,848,0003,997,0002,469,888
2Nov 13, 2024 11:35271,614259,132,676236,020,0003,000,0002,314,240
3Nov 13, 2024 11:35271,692265,983,771235,088,0004,001,0002,465,792
4Nov 13, 2024 11:35271,785266,532,681235,169,0004,002,0002,465,792
5Nov 13, 2024 11:35272,452267,046,546237,761,0001,997,0002,473,984
6Nov 13, 2024 11:35272,477269,663,798235,784,0003,996,0002,330,624
7Nov 13, 2024 11:35272,633269,405,939235,919,0003,998,0002,289,664
8Nov 13, 2024 11:35272,717266,493,281235,992,0003,999,0002,289,664
9Nov 13, 2024 11:35273,893271,588,316237,026,0004,000,0002,465,792