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 listDec 1, 2022 07:36apuxbtapuxbtScore: 30,563Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 07:3630,38855,582,82126,741,00002,387,968
2Dec 1, 2022 07:3430,39084,549,78626,743,37302,244,608
3Dec 1, 2022 07:3630,42652,574,73325,746,0001,029,0002,392,064
4Dec 1, 2022 07:3430,52380,855,89426,860,05802,240,512
5Dec 1, 2022 07:3630,53485,165,39326,869,59302,232,320
6Dec 1, 2022 07:3630,55554,018,88625,893,000995,0002,392,064
7Dec 1, 2022 07:3630,55691,525,05026,889,28702,232,320
8Dec 1, 2022 07:3630,56353,957,69525,899,000996,0002,265,088
9Dec 1, 2022 07:3630,56854,269,15725,904,000996,0002,265,088
10Dec 1, 2022 07:3630,57258,479,64424,911,0001,992,0002,392,064
11Dec 1, 2022 07:3630,57353,373,11825,908,000996,0002,392,064
12Dec 1, 2022 07:3630,61155,823,93125,941,000997,0002,375,680
13Dec 1, 2022 07:3430,61292,330,78426,938,84802,232,320
14Dec 1, 2022 07:3630,69888,082,66127,014,24602,232,320
15Dec 1, 2022 07:3630,86951,601,77025,153,0002,012,0002,383,872