Author Topic: [TI-Planet Contest] Heat up your calc with arithmetic !  (Read 23946 times)

0 Members and 1 Guest are viewing this topic.

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
[TI-Planet Contest] Heat up your calc with arithmetic !
« on: April 04, 2013, 05:14:28 am »
Hello everyone,

It has been time TI-Planet have not organized a contest, and here is the lack filled ;)
So we organize a contest, about 5 weeks, well mixing arithmetic and algorithmics.


Introduction:
In mathematics, a prime palindom number is a number which is both prime and palindromic.

A prime number is an integer that only admits two positive and integer divisors (which are 1 and itself).
This definition excludes 1, which has only one positive and integer divisor ; it excludes 0 too, which is divisible by all the positive integers.
For example 6 = 2 × 3 is not prime and 21 = 3 × 7 or 7 × 3 either. But 11 is prime because 1 and 11 are the only divisors of 11.
So, the prime numbers are, in order, 2, 3, 5, 7, 11...

A palindromic number is a number whose writing (in base 10) is read in the same way from left to right and from right to left.
For example, all the 1-digit numbers are palindromic: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
The 2-digit palindroms are: 11, 22, 33, 44, 55, 66, 77, 88 and 99.
101 is a 3-digit palindromic number.

So, the prime palindromic numbers are: 2, 3, 5, 7, 11, 101, 131...

Subject :
Make a program fastest as possible to find the n-th prime palindromic number.

Plateform :
The candidate will perform its participation:
  • TI-Nspire
  • TI-82Stats/83/76
  • TI-83+/84
Categories:
The candidate's production will be judged in one of those categories:
  • TI-Nspire
  • TI-82Stats/83/84/76
Languages :
  • TI-Basic Nspire
  • TI-Basic TI-82Stats/83/84/76
  • TI-83+/84 Assembly NO SHELL (So, you can participate with Axe compiled for no shell)
  • TI-82Stats/83/76 Assembly NO SHELL
NB: on TI-82Stats/83/84,TI-Basic and assembly combinations are allowed.

Constraints :
On TI-82Stats/83/84/76, the program will catch n in the 'Ans' variable, and will send the nth prime palindromic number as a result in Ans.
For example, to obtain the 42th prime, we will type:
  • TI-Basic program: 42:prgmPALPREM
  • TI-83+/84 Assembly program: 42:Asm(prgmPALPREM
  • TI-82Stats/83/76 Assembly program: 42:Send(9prgmPALPREM
In each case, the program should send the result 18181 in Ans, reusable in the home screen for calculations.


On TI-Nspire, the main program should be a function which take the n parameter and which sends the result. For example, palprem(42) should answer 18181.

YOU MUST NOT USE a pre-calculated list of prime palindromic numbers in your program, directly under penalty of disqualification.

YOU MUST NOT USE functions like isPrime() which would provide a direct response, it destroys the value of algorithmic thinking, and it would be unfair to those who don't have this function... ;)

The program MUST run on not-CAS TI-Nspires.

Notation :
The final score will be on 20 points, and the scale is as follows:
  • 3 points for the proper functioning of the program
  • 10 points for the fast execution of the program (it will be tested and compared to competitors on identical machines with identical languages)
  • 3 points for the respect of the rules
  • 4 points for an explanation
Jury :
Participations are rated on an equitable basis according to a common scale by a jury whose composition is as follows:
  • Adriweb
  • Critor
  • Laurae
  • Levak
  • Lionel Debroux
When ? :
The contest starts Monday the 1st of April 2013 and finishs Sunday the 12th of May, 23h59 (GMT+1)

How ? :
To participate, candidates must send to the email address [email protected] :
  • complete mailing address with first and last name
  • a valid email address for contact
  • the expected production (8xp, 83p, tns)
  • any other information or file deemed useful by the candidate concerning its production
The e-mail correctly send is taken as an entry.

Lots :
Through our partnership with TI-France and Jarrety, the winners of the contest (one winner per category) will be rewarded with:
  • 1st price: 1 calculator + 4 TI-Planet stickers
  • 2nd price: 1 poster TI + 3 TI-Planet stickers
  • 3rd price: 2 TI-Planet stickers
1st price in the Nspire category: a TI-Nspire CX (not CAS)
1st price in the TI-82/83/84 category : a TI-84 Pocket.fr

Complete rules:
The complete rules for this contest, legally registered to an usher, are available on
TI-Planet or the  UPECS website. (French)


See you soon on TI-Planet !

PS: I know I'm a bit late, because the contest has started...
« Last Edit: April 04, 2013, 05:29:52 am by persalteas »


Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #1 on: April 04, 2013, 06:46:58 am »
So no Casio calcs then? :|

Maybe I could still make one for the fun of it :3

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #2 on: April 04, 2013, 06:50:51 am »
Oh my gosh, this sounds fun o.o I probably won't have time, though, but if I do, I will try!


Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #3 on: April 04, 2013, 07:51:59 am »
Even though it says no pre-calculated lists... Can we use one for 2 and 3? The fastest algorithm I've got disregards 2 and 3...

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #4 on: April 04, 2013, 08:32:51 am »
Ok I'm confused. The PDF lists the prizes as:
Quote from: The rules translated
ARTICLE 6: Staffing
Competitions organized by TI-Planet will feature several awards. All lots, specified below
below, will be shared between the events of the competition.
● 5x (five) TI-Nspire CX CAS (unit value: 150 €)
● 3x (three) TI-Nspire CX (unit value: € 13 0)
● 2x (two) TI-84 Pocket.fr (unit value: 100 €)
● 3x (three) TI-83 Plus.fr (unit value: € 90)
● 3x (three) TI-82 Stats.fr (unit value: € 70)
● 3x (three) TI-Collège Plus (unit value: € 18)
The website reserves the right to add additional lots.

Your post however only lists two prizes. Which is correct?
I also want a clarification, are there only two categories? One being Nspire and one being Z80? It looks as though all Z80 regardless of language is being judged together. If someone who's judging could answer, that'd be great.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #5 on: April 04, 2013, 10:10:45 am »
I'm SOOOO IN!
Keep trying.

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #6 on: April 04, 2013, 10:22:32 am »
Ok I'm confused. The PDF lists the prizes as:
Quote from: The rules translated
ARTICLE 6: Staffing
Competitions organized by TI-Planet will feature several awards. All lots, specified below
below, will be shared between the events of the competition.
● 5x (five) TI-Nspire CX CAS (unit value: 150 €)
● 3x (three) TI-Nspire CX (unit value: € 13 0)
● 2x (two) TI-84 Pocket.fr (unit value: 100 €)
● 3x (three) TI-83 Plus.fr (unit value: € 90)
● 3x (three) TI-82 Stats.fr (unit value: € 70)
● 3x (three) TI-Collège Plus (unit value: € 18)
The website reserves the right to add additional lots.

Your post however only lists two prizes. Which is correct?
I also want a clarification, are there only two categories? One being Nspire and one being Z80? It looks as though all Z80 regardless of language is being judged together. If someone who's judging could answer, that'd be great.

The PDF file is the rules for the 2013 event (which is, actually : several contests during the year). The prizes for this specific contest are the one listed on this topic.
(the meaning in english is that all the prizes specified below will be shared between the several TI-Planet 2013 contests."
« Last Edit: April 04, 2013, 11:35:58 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #7 on: April 04, 2013, 10:30:56 am »
Alright, thank you for the clarification. :) What about the categories? It's just two right?
« Last Edit: April 04, 2013, 10:31:56 am by Art_of_camelot »

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #8 on: April 04, 2013, 02:27:51 pm »
What size numbers should we be expected to handle? 16-bit?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #9 on: April 04, 2013, 02:29:46 pm »
Clearly more than 16 bits.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline CVSoft

  • LV3 Member (Next: 100)
  • ***
  • Posts: 65
  • Rating: +5/-0
    • View Profile
    • CVSoft Homepage (work in progress)
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #10 on: April 04, 2013, 02:50:48 pm »
The first 70 palindromic primes are less than 65536, but anything after requires larger integers.
Current projects:
Sunθ v4.0 (Solar Position Calculator) (on hold)
CBLLight/CBLTherm (TI-Z80 only)
CBLM (68k only)
--KJ6PSG

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #11 on: April 04, 2013, 03:47:26 pm »
That's a little more complicated for the z80 :/

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #12 on: April 04, 2013, 05:08:12 pm »
What size numbers should we be expected to handle? 16-bit?
Well, we'll test against several numbers, from low to mid to big ones, so ... :P
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #13 on: April 04, 2013, 08:29:27 pm »
What size numbers should we be expected to handle? 16-bit?
Well, we'll test against several numbers, from low to mid to big ones, so ... :P
Are we allowed to ask how big the biggest numbers are? ;D




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [TI-Planet Contest] Heat up your calc with arithmetic !
« Reply #14 on: April 04, 2013, 09:20:06 pm »
mathematics

What are mathematics? Are they a new program release for the TI-84 Plus adding extra functionality to that video gaming console? O.O

Seems like an interesting contest, though. Good luck to whoever participates! :)