A powerful property of 3s

Behold:

let 三 = 3_u32;

(1..=三).map(|x| (10 * x - 三).pow(x)).product::<u32>() / 三.pow(三).pow(三)

[1]
Happy new year everybody!


  1. Or mathematically rendered. ↩︎

7 Likes

Well, if you want to be weird...

struct ﻝ {}

impl ﻝ {
    pub fn ﺍ() {
        println!("Happy New Year!");
    }
}

fn main() {
    ﻝ::ﺍ();
}

or why Unicode should not be allowed in source code :slight_smile:

Is this Herf from Aurebesh???

Numeric value: 3.0. [1]


  1. And I wanted to avoid type suffixes everywhere... :sweat_smile: ↩︎

Or maybe

(0..三).map(|x| (三 + x * 三 + x.pow(三)).pow(x)).product::<u32>()
3 Likes

Want a powerful property of 7s, too?

let 七 = 7_u32;

七.pow(七) % (1..=七).product::<u32>()

Rust Playground

4 Likes

For readers who understand neither 漢字 nor Unicode datasheets: that's the Chinese character for 3. :slight_smile:

1 Like

It's also Japanese for 3, which might be a more fitting interpretation given the difference in date between Japanese New Year and Chinese New Year.