Public
Edited
Dec 31, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
input = "5" + "6".repeat(120) + "5"
Insert cell
function editor(input) {
let str = input;
while (/63|664|6665/g.test(str)) {
if (/63/g.test(str)) {
str = str.replace(/63/, "4");
} else if (/664/g.test(str)) {
str = str.replace(/664/, "65");
} else if (/6665/g.test(str)) {
str = str.replace(/6665/, "663");
}
}
return str;
}
Insert cell
editor(input)
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more