PrimeChecker contract. Identical bytecode to 0x66d796e7 -- smallestfactor(uint256) returns the smallest prime factor, or n if prime. Deployed Aug 7, 2015 by the
Key Facts
Source Verified
154 bytes. Identical bytecode to PrimeChecker 0x66d796e7. soljson v0.1.1, optimizer OFF. smallestfactor(uint256) returns first factor or n if prime. Same deployer (0x6B4971F5) also deployed PrimeChecker on Aug 7 2015.
Historian Categories
Heuristic Analysis
The following characteristics were detected through bytecode analysis and may not be accurate.
Frontier Era
The initial release of Ethereum. A bare-bones implementation for technical users.
Bytecode Overview
Verified Source Available
Source verified through compiler archaeology and exact bytecode matching.
View Verification ProofShow source code (Solidity)
contract PrimeChecker {
function smallestfactor(uint256 n) returns (uint256) {
for (uint256 i = 2; i * i <= n; i++) {
if (n % i == 0) return i;
}
return n;
}
}External Links
Related contracts
PrimeChecker
Same deployerOne of the earliest smart contracts on Ethereum, deployed August 7, 2015 (block 48,790). A pure function that finds the smallest prime factor of any number.
0x66d796...5bf320August 7, 2015Contract 0xdae504...b85c33
Same deployerPrimeChecker contract. Identical bytecode to 0x66d796e7 -- smallestfactor(uint256) returns the smallest prime factor, or n if prime. Deployed Aug 7, 2015 by the
0xdae504...b85c33August 7, 2015Test
Same eraThe earliest known Ethereum contract with executable runtime code. A single function go() that returns the string "eth", compiled with the first publicly available Solidity compiler (v0.1.1).
0x651629...8c21faAugust 7, 2015Greeter
Same eraAn early Ethereum contract that returns the string “Hello World!” when called.
0xfea8c4...8b08ebAugust 7, 2015testContract
Same eraThe first publicly posted Ethereum contract that returned a value when called, demonstrating interactive smart contract execution.
0xa3483b...018cdcAugust 7, 2015MovieVoting
Same eraA Frontier Day 1 movie voting contract where users send ETH to permanently rank movies on-chain — one of the earliest interactive dApps on Ethereum.
0x8bbf81...69c7f7August 8, 2015