Skip to content

Instantly share code, notes, and snippets.

@withs
withs / palindrome.swift
Last active June 5, 2021 09:45
Simple script wich try all 4x4 mumbers and get the highest palindrome of it in Swift
/*
Simple script wich try all 4x4 mumbers and get the highest palindrome of it.
- results: 4x4 numbers (Imac 2013, i5, swift 5.3.2)
Highest palindrome -> 99000099
Found in -> 240.52266907691956 seconds
- results: 4x4 numbers (Macbook air 2020, M1, swift 5.4)
Highest palindrome -> 99000099
@withs
withs / palindrome.py
Last active June 5, 2021 09:48
Simple script wich try all 4x4 mumbers and get the highest palindrome of it in Python
"""
Simple script wich try all 4x4 mumbers and get the highest palindrome of it.
Results
-------
- 4x4 numbers (Imac 2013, i5, Python 3.9.2)
Highest palindrome -> 98344389
Found in -> 94.88048125600001 seconds